materials_compendium.utils.Material.get_density

Material.get_density()[source]

Get the density associated with the material.

Returns:

The density.

Return type:

float

Example

datum = Datum(Density=1.0) material = Material(datum) print(material.get_density()) # Output: 1.0