Skip to content

Commit

Permalink
SOF-7136: include hubbard_v properties
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Dec 15, 2023
1 parent 41c39c2 commit 0839e4d
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/classmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ChargeDensityProfileProperty } from "./include/non-scalar/charge_densit
import { DensityOfStatesProperty } from "./include/non-scalar/density_of_states";
import { DielectricTensorProperty } from "./include/non-scalar/dielectric_tensor";
import { HubbardUProperty } from "./include/non-scalar/hubbard_u";
import { HubbardVProperty } from "./include/non-scalar/hubbard_v";
import { HubbardVNNProperty } from "./include/non-scalar/hubbard_v_nn";
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 @@ -57,7 +59,9 @@ export const PROPERTY_CLASS_MAP = {
[PROPERTIES.pseudopotential]: Pseudopotential,
[PROPERTIES.boundary_conditions]: null,
[PROPERTIES.dielectric_tensor]: DielectricTensorProperty,
[PROPERTIES.hubbard_u]: HubbardUProperty
[PROPERTIES.hubbard_u]: HubbardUProperty,
[PROPERTIES.hubbard_v_nn]: HubbardVNNProperty,
[PROPERTIES.hubbard_v]: HubbardVProperty,
};

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

export class HubbardVProperty extends Property {
get values() {
return this.prop("values");
}
}
7 changes: 7 additions & 0 deletions src/include/non-scalar/hubbard_v_nn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Property } from "../../property";

export class HubbardVNNProperty extends Property {
get values() {
return this.prop("values");
}
}
2 changes: 2 additions & 0 deletions src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,6 @@ export const PROPERTIES = {
boundary_conditions: "boundary_conditions",
dielectric_tensor: "dielectric_tensor",
hubbard_u: "hubbard_u",
hubbard_v_nn: "hubbard_v_nn",
hubbard_v: "hubbard_v",
};
6 changes: 6 additions & 0 deletions src/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,10 @@ export default {
[PROPERTIES.hubbard_u]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_v_nn]: {
type: PROPERTY_TYPES.non_scalar,
},
[PROPERTIES.hubbard_v]: {
type: PROPERTY_TYPES.non_scalar,
},
};

0 comments on commit 0839e4d

Please sign in to comment.