Material

class materials_compendium.utils.Material(datum)[source]

Initialize a Material object with material data.

Parameters:

datum (Datum) – An instance of the Datum class containing various material information.

Example

datum = Datum(Name=”Sample Material”, Formula=”H2O”, …) material = Material(datum) #or material = Material(MaterialsCompendium[0])

Methods

from_acronym

Create a Material object by searching for a material using its acronym.

from_formula

Create a Material object by searching for a material using its formula.

from_name

Create a Material object by searching for a material using its name.

get_acronym

Get the acronym associated with the material.

get_all

Get all available material information in a formatted string.

get_comment

Get the comments associated with the material.

get_contact

Get the contact information associated with the material.

get_density

Get the density associated with the material.

get_elements

Get information about elements associated with the material.

get_formula

Get the formula of the material.

get_mat_num

Get the material number.

get_material_atom_density

Get the material atom density.

get_material_weight

Get the material weight.

get_mols

Get information about mols associated with the material.

get_name

Get the name of the material.

get_references

Get the references associated with the material.

get_source

Get the source of the material.

get_verification_notes

Get the verification notes associated with the material.