Skip to content

Commit

Permalink
SOF-6892: separate schemas for Hubbard U and V
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Nov 23, 2023
1 parent 801f39f commit ce6b2d9
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 105 deletions.
37 changes: 0 additions & 37 deletions example/properties_directory/non-scalar/hubbard_parameters.json

This file was deleted.

18 changes: 18 additions & 0 deletions example/properties_directory/non-scalar/hubbard_u.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "hubbard_u",
"units": "eV",
"values": [
{
"id": 1,
"siteName": "Co",
"orbitalName": "3d",
"value": 6.7553
},
{
"id": 2,
"siteName": "O",
"orbitalName": "3p",
"value": 2.2438
}
]
}
26 changes: 26 additions & 0 deletions example/properties_directory/non-scalar/hubbard_v.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "hubbard_v",
"units": "eV",
"values": [
{
"id": 1,
"siteName": "Co",
"orbitalName": "3d",
"id2": 1,
"siteName2": "Co",
"orbitalName2": "3d",
"distance": 0,
"value": 6.7553
},
{
"id": 1,
"siteName": "Co",
"orbitalName": "3d",
"id2": 2,
"siteName2": "O",
"orbitalName2": "3p",
"distance": 3.5423,
"value": 2.2438
}
]
}
21 changes: 6 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions schema/core/reusable/atomic_data_per_orbital.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"properties": {
"id": {
"type": "number",
"description": "Site number or index in the lattice"
"description": "Site number in the lattice"
},
"siteName": {
"type": "string",
"description": "Example: Co, Ni1, O"
"description": "Atomic species name. Example: Co, Ni1, O"
},
"orbitalName": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
"pattern": "^[1-7][sSpPdDfF]$",
"description": "Atomic orbital or Hubbard manifold."
}
},
"additionalProperties": false
}
}
7 changes: 5 additions & 2 deletions schema/core/reusable/atomic_data_per_orbital_pair.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
"orbitalName2": {
"type": "string",
"pattern": "^[1-7][sSpPdDfF]$"
},
"distance": {
"type": "number",
"description": "Distance between to sites in angstrom."
}
},
"additionalProperties": false
}
}
46 changes: 0 additions & 46 deletions schema/properties_directory/non-scalar/hubbard_parameters.json

This file was deleted.

32 changes: 32 additions & 0 deletions schema/properties_directory/non-scalar/hubbard_u.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$id": "properties-directory/non-scalar/hubbard-u",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Hubbard U parameters",
"description": "Hubbard U value in eV",
"properties": {
"name": {
"enum": ["hubbard_u"]
},
"units": {
"enum": ["eV"]
},
"values": {
"type": "array",
"items": {
"type": "object",
"allOf": [
{
"$ref": "../../core/reusable/atomic_data_per_orbital.json"
}
],
"properties": {
"value": {
"type": "number",
"description": "Hubbard U values in eV"
}
}
}
}
},
"required": ["name"]
}
32 changes: 32 additions & 0 deletions schema/properties_directory/non-scalar/hubbard_v.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$id": "properties-directory/non-scalar/hubbard-v",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Hubbard V parameters",
"description": "Hubbard V value in eV",
"properties": {
"name": {
"enum": ["hubbard_v"]
},
"units": {
"enum": ["eV"]
},
"values": {
"type": "array",
"items": {
"type": "object",
"allOf": [
{
"$ref": "../../core/reusable/atomic_data_per_orbital_pair.json"
}
],
"properties": {
"value": {
"type": "number",
"description": "Hubbard V values in eV"
}
}
}
}
},
"required": ["name"]
}

0 comments on commit ce6b2d9

Please sign in to comment.