Skip to content

Commit

Permalink
SOF-6892: reusable atomic_per_orbital and _per_orbital_pair, unify hu…
Browse files Browse the repository at this point in the history
…bbard u and v
  • Loading branch information
pranabdas committed Nov 21, 2023
1 parent 0871d75 commit 1f4124e
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 26 deletions.
35 changes: 26 additions & 9 deletions example/properties_directory/non-scalar/hubbard_parameters.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
{
"name": "hubbard_parameters",
"units": "eV",
"category": "hubbard_u",
"headers": ["Site no.", "Atomic species", "Orbital/manifold", "U (eV)"],
"values": [
{
"siteNumber": 1,
"atomicSpecies": "Co1",
"orbitalName": "3d",
"category": "hubbard_u",
"headers": ["Site no.", "Atomic species", "Orbital/manifold", "U (eV)"],
"siteProperty": {
"id": 1,
"siteName": "Co1",
"orbitalName": "3d"
},
"value": 6.7553
},
{
"siteNumber": 2,
"atomicSpecies": "Co2",
"orbitalName": "3d",
"value": 6.7553
"category": "hubbard_v",
"headers": [
"Site no. 1",
"Site no. 2",
"Atomic species1",
"Atomic species2",
"Orbital1",
"Orbital2",
"V (eV)"
],
"siteProperty": {
"id": 1,
"id2": 2,
"siteName": "Co1",
"siteName2": "O",
"orbitalName": "3d",
"orbitalName2": "3p"
},
"value": 8.3245
}
]
}
22 changes: 22 additions & 0 deletions schema/core/reusable/atomic_data_per_orbital.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "core/reusable/atomic-data-per-orbital",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Atomic data per orbital",
"description": "Atomic properties per orbital e.g., Hubbard U parameters.",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Site number or index in the lattice"
},
"siteName": {
"type": "string",
"description": "Example: Co, Ni1, O"
},
"orbitalName": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
}
},
"additionalProperties": false
}
34 changes: 34 additions & 0 deletions schema/core/reusable/atomic_data_per_orbital_pair.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$id": "core/reusable/atomic-data-per-orbital-pair",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Atomic data per orbital pair",
"description": "Atomic properties per orbital pair e.g., Hubbard V parameters.",
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Site number or index in the lattice"
},
"id2": {
"type": "number",
"description": "Site number or index in the lattice of second site"
},
"siteName": {
"type": "string",
"description": "Example: Co1"
},
"siteName2": {
"type": "string",
"description": "Example: O"
},
"orbitalName": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
},
"orbitalName2": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
}
},
"additionalProperties": false
}
34 changes: 17 additions & 17 deletions schema/properties_directory/non-scalar/hubbard_parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,33 @@
"units": {
"enum": ["eV"]
},
"headers": {
"type": "array",
"items": {
"type": "string"
}
},
"category": {
"enum": ["hubbard_u", "hubbard_v"]
},
"values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"siteNumber": {
"type": "number"
"headers": {
"type": "array",
"items": {
"type": "string"
}
},
"atomicSpecies": {
"type": "string"
"category": {
"enum": ["hubbard_u", "hubbard_v"]
},
"orbitalName": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
"siteProperty": {
"anyOf": [
{
"$ref": "../../core/reusable/atomic_data_per_orbital.json"
},
{
"$ref": "../../core/reusable/atomic_data_per_orbital_pair.json"
}
]
},
"value": {
"type": "number",
"description": "Hubbard U values in eV"
"description": "Hubbard U/V values in eV"
}
}
}
Expand Down

0 comments on commit 1f4124e

Please sign in to comment.