auxi.tools.materialphysicalproperties.core module¶
This module provides tools for calculating material physical properties.
-
class
auxi.tools.materialphysicalproperties.core.DataSet(csvfilepath)¶ Bases:
objectContains a data set used to create and/or test a material physical property model.
Parameters: csvfilepath – path to the csv file that contains the data -
static
create_template(material, path, show=False)¶ Create a template csv file for a data set.
Parameters: - material – the name of the material
- path – the path of the directory where the file must be written
- show – a boolean indicating whether the created file should be displayed after creation
-
static
-
class
auxi.tools.materialphysicalproperties.core.Model(material, property, symbol, display_symbol, units, state_schema, references, datasets)¶ Bases:
auxi.core.objects.ObjectBase class of models that describe the variation of a specific material physical property.
param material: the name of the material being described, e.g. “Air” param property: the name of the property being described, e.g. “density” param symbol: the symbol of the property being described, e.g. “rho” param display symbol: the display symbol of the property being described, e.g. “ - ho”
param units: the units used to express the property, e.g. “kg/m3” param references: a list of literature references on which this model implementation is based, e.g. [‘lienhard2015’, ‘smith2006’] param datasets: a list of data sets on which this model implementation is based, e.g. [‘dataset-air-lienhard2015.csv’]
-
calculate(**state)¶ Base calculate method for models. Validates the material state parameter(s).
Parameters: **state – The material state
-
class
auxi.tools.materialphysicalproperties.core.StateOfMatter¶ Bases:
enum.EnumAn enumeration.
-
gas= 4¶
-
gas_plasma= 12¶
-
liquid= 2¶
-
liquid_gas_plasma= 14¶
-
liquid_plasma= 10¶
-
plasma= 8¶
-
solid= 1¶
-
solid_gas= 5¶
-
solid_liquid= 3¶
-
solid_liquid_gas= 7¶
-
solid_liquid_gas_plasma= 15¶
-
solid_liquid_plasma= 11¶
-
solid_plasma= 9¶
-
unknown= 0¶
-