auxi.tools.materialphysicalproperties.polynomial module¶
This module provides tools for calculating material physical properties.
-
class
auxi.tools.materialphysicalproperties.polynomial.
PolynomialModelT
(material, proprty, symbol, display_symbol, units, references, datasets, coeffs)¶ Bases:
auxi.tools.materialphysicalproperties.core.Model
A model that uses polynomial fits on experimental data to describe the variation of a specific material physical property as a function of temperature.
param material: the name of the material being described, e.g. “Air” param proprty: 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’] param coeffs: polynomial coefficients sorted from highest to lowest power
-
calculate
(**state)¶ Calculate the material physical property at the specified temperature in the units specified by the object’s ‘property_units’ property.
Parameters: T – [K] temperature Returns: physical property value
-
create
(dataset, symbol, degree)¶ Create a model object from the data set for the property specified by the supplied symbol, using the specified polynomial degree.
Parameters: - dataset – a DataSet object
- symbol – the symbol of the property to be described, e.g. ‘rho’
- degree – the polynomial degree to use
Returns: a new PolynomialModelT object
-
plot
(dataset, path, show=False)¶