Skip to content

Commit

Permalink
SOF-6892: add hubbard parameters property/result
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Nov 4, 2023
1 parent e44528e commit a2b9da6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { BandStructureProperty } from "./include/non-scalar/band_structure";
import { ChargeDensityProfileProperty } from "./include/non-scalar/charge_density_profile";
import { DensityOfStatesProperty } from "./include/non-scalar/density_of_states";
import { DielectricTensorProperty } from "./include/non-scalar/dielectric_tensor";
import { HubbardParametersProperty } from "./include/non-scalar/hubbard_parameters";
import { PhononDispersionsProperty } from "./include/non-scalar/phonon_dispersions";
import { PhononDOSProperty } from "./include/non-scalar/phonon_dos";
import { PotentialProfileProperty } from "./include/non-scalar/potential_profile";
Expand Down Expand Up @@ -56,6 +57,7 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.pseudopotential]: Pseudopotential,
[PROPERTIES.boundary_conditions]: null,
[PROPERTIES.dielectric_tensor]: DielectricTensorProperty,
[PROPERTIES.hubbard_parameters]: HubbardParametersProperty
};

export const PROPERTY_BRANCH_MAP = {
Expand Down
7 changes: 7 additions & 0 deletions src/include/non-scalar/hubbard_parameters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Property } from "../../property";

export class HubbardParametersProperty extends Property {
get values() {
return this.prop("values");
}
}
1 change: 1 addition & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ export const PROPERTIES = {
pseudopotential: "pseudopotential",
boundary_conditions: "boundary_conditions",
dielectric_tensor: "dielectric_tensor",
hubbard_parameters: "hubbard_parameters",
};
3 changes: 3 additions & 0 deletions src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,7 @@ export default {
[PROPERTIES.dielectric_tensor]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_parameters]: {
type: PROPERTY_TYPES.non_scalar,
},
};

0 comments on commit a2b9da6

Please sign in to comment.