Skip to content

Commit

Permalink
Add new elasticity data to summary
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Jul 7, 2022
1 parent 2c43042 commit d4a3e59
Showing 1 changed file with 9 additions and 37 deletions.
46 changes: 9 additions & 37 deletions emmet-core/emmet/core/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from emmet.core.mpid import MPID
from emmet.core.thermo import DecompositionProduct
from emmet.core.xas import Edge, Type
from emmet.core.elasticity import BulkModulus, ShearModulus

T = TypeVar("T", bound="SummaryDoc")

Expand Down Expand Up @@ -312,41 +313,15 @@ class SummaryDoc(PropertyDoc):

# Elasticity

k_voigt: float = Field(
None,
description="Voigt average of the bulk modulus in GPa.",
source="elasticity",
bulk_modulus: BulkModulus = Field(
None, description="Bulk modulus data in in GPa.", source="elasticity",
)

k_reuss: float = Field(
None,
description="Reuss average of the bulk modulus in GPa.",
source="elasticity",
shear_modulus: ShearModulus = Field(
None, description="Shear modulus in GPa.", source="elasticity",
)

k_vrh: float = Field(
None,
description="Voigt-Reuss-Hill average of the bulk modulus in GPa.",
source="elasticity",
)

g_voigt: float = Field(
None,
description="Voigt average of the shear modulus in GPa.",
source="elasticity",
)

g_reuss: float = Field(
None,
description="Reuss average of the shear modulus in GPa.",
source="elasticity",
)

g_vrh: float = Field(
None,
description="Voigt-Reuss-Hill average of the shear modulus in GPa.",
source="elasticity",
)
young_modulus: float = Field(None, description="Young's modulus (SI units)")

universal_anisotropy: float = Field(
None, description="Elastic anisotropy.", source="elasticity"
Expand Down Expand Up @@ -524,12 +499,9 @@ def from_docs(cls, material_id: MPID, **docs: Dict[str, Dict]):
"is_magnetic",
],
HasProps.elasticity.value: [
"k_voigt",
"k_reuss",
"k_vrh",
"g_voigt",
"g_reuss",
"g_vrh",
"bulk_modulus",
"shear_modulus",
"young_modulus",
"universal_anisotropy",
"homogeneous_poisson",
],
Expand Down

0 comments on commit d4a3e59

Please sign in to comment.