salvus.material.utils
Utils for SalvusMaterial.
Functions
is_acoustic()
is_acoustic()def is_acoustic(material: types) -> types: ...Determine if a (list of) material(s) is acoustic.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.
is_anisotropic()
is_anisotropic()def is_anisotropic(material: types) -> types: ...Determine if a (list of) material(s) is anisotropic.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.
is_attenuating()
is_attenuating()def is_attenuating(material: types) -> types: ...Determine if a (list of) material(s) is attenuating.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.
is_elastic()
is_elastic()def is_elastic(material: types) -> types: ...Determine if a (list of) material(s) is elastic.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.
is_homogeneous()
is_homogeneous()def is_homogeneous(material: types) -> types: ...Determine if a (list of) material(s) is homogeneous.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.
is_isotropic()
is_isotropic()def is_isotropic(material: types) -> types: ...Determine if a (list of) material(s) is isotropic.
Parameters
materialtypes — The material or list of materials to check.
Returns types — A boolean or list of booleans.