Material#

Contains the material class.

class pygaps.core.material.Material(name: str, store: bool = False, **properties)[source]#

An unified descriptor for an adsorbent material.

Parameters:

name (str) -- The name of the material.

Other Parameters:
  • density (float) -- Material density.

  • molar_mass (float) -- Material molar mass.

Notes

The members of the properties are left at the discretion of the user. There are, however, some unique properties which can be set.

print_info()[source]#

Print a short summary of all the material parameters.

classmethod find(name: str)[source]#

Get the specified material from the master list.

Parameters:

name (str) -- The name of the material to search.

Returns:

Material -- Instance of class.

Raises:

ParameterError -- If it does not exist in list.

to_dict() dict[source]#

Return a dictionary of the material class.

Is the same dictionary that was used to create it.

Returns:

dict -- Dictionary of all parameters.

property density: float#

Material density, in g/cm3 (optional).

property molar_mass: float#

Material molar mass, in g/mol (optional).

get_prop(prop: str)[source]#

Return a property from the internal dictionary.

Parameters:

prop (str) -- Property name desired.

Returns:

str/float -- Value of property in the properties dict.

Raises:

ParameterError -- If it does not exist.