Details and Options
ResourceFunction["ElasticData"] returns a combined association of elastic properties available in the Python packages mechelastic.core.ELATE and mechelastic.core.ElasticProperties.
If the necessary Python dependencies are not installed, the first invocation of
ResourceFunction["ElasticData"] can take longer than usual as the function attempts to install the necessay packages automatically, using the the resource function
PythonEvaluateWithDependencies.
Should the automatic installation fail for some packages, it might still be possible to install the packages manually using the resource function
PythonPackageInstall.
The input stiffness matrix m is also called the elastic tensor.
The specified material parameters params can be one of the following:
{m,atoms,fc,lm} | a list of the stiffness matrix m, the list of atoms, their fractional coordinates fc and lattice matrix lm |
{m,sassoc} | the stiffness matrix m and an association of the structural parameters sassoc |
passoc | parameters given as an association |
sassoc must contain the keys
"Atoms",
"FractionalCoordinates" and
"LatticeMatrix" or be given in the form of the
"structure" property association as returned by the Function Repository item
MaterialsProjectData.
passoc can be given in the form of an association returned by
MaterialsProjectData, in which case it must contain the
"elasticity" and
"structure" properties.
The argument
prop can be a string representing one of the available properties:
Automatic to give most of the basic properties,
Full to give all the available basic properties or
All to give an association of most of the basic properties along with the properties corresponding to property plots.
When combining properties obtained from the underlying Python packages,
ResourceFunction["ElasticData"][params,Automatic] omits duplicate properties that are available under different names, whereas
ResourceFunction["ElasticData"][params,Full] returns all the available basic properties.
For properties corresponding to plots,
propi can be given in the form
{"namei",opts…}, where
opts can be options settings for
ListPlot.
ResourceFunction["ElasticData"]["Properties"] gives a list of the available property names.
ResourceFunction["ElasticData"]["PropertyRules"] provides a mapping between the curated property names and the underlying Python-side names.
ResourceFunction["ElasticData"][…,session] avoids the overhead of opening a new Python session for every successive call.
ResourceFunction["ElasticData"] accepts the option "PrintOutput" that controls how the print output from the Python evaluations should be handled:
True | allow print output |
False | suppress print output (default) |
Automatic | pass through print output |
ResourceFunction["ElasticData"][…,"PrintOutput"→Automatic] appends the contents of print statements to the returned association in the form
"Comments"→comments.