auxi.tools.materialphysicalproperties.idealgas module

This module provides tools for calculating physical properties of an ideal gas.

class auxi.tools.materialphysicalproperties.idealgas.BetaT

Bases: auxi.tools.materialphysicalproperties.core.Model

A model that describes the variation in the thermal expansion coefficient of an ideal gas as a function of temperature.

calculate(**state)

Calculate the thermal expansion coefficient at the specified temperature:

Parameters:T – [K] temperature
Returns:[1/K] thermal expansion coefficient

The **state parameter contains the keyword argument(s) specified above that are used to describe the state of the material.

class auxi.tools.materialphysicalproperties.idealgas.RhoT(molar_mass, P)

Bases: auxi.tools.materialphysicalproperties.core.Model

A model that describes the variation in density of an ideal gas as a function of temperature.

Parameters:
  • molar_mass – [g/mol] average molar mass of the gas
  • P – [Pa] pressure
P = None

[Pa] pressure

calculate(**state)

Calculate the density at the specified temperature.

Parameters:T – [K] temperature
Returns:[kg/m3] density

The **state parameter contains the keyword argument(s) specified above that are used to describe the state of the material.

mm = None

[kg/mol] average molar mass of the gas

class auxi.tools.materialphysicalproperties.idealgas.RhoTP(molar_mass)

Bases: auxi.tools.materialphysicalproperties.core.Model

A model that describes the variation in density of an ideal gas as a function of temperature and pressure.

Parameters:molar_mass – [g/mol] average molar mass of the gas
calculate(**state)

Calculate the density at the specified temperature and pressure.

Parameters:
  • T – [K] temperature
  • P – [Pa] pressure
Returns:

[kg/m3] density

The **state parameter contains the keyword argument(s) specified above that are used to describe the state of the material.

mm = None

[kg/mol] average molar mass of the gas

class auxi.tools.materialphysicalproperties.idealgas.RhoTPx

Bases: auxi.tools.materialphysicalproperties.core.Model

A model that describes the variation in density of an ideal gas as a function of temperature, pressure, and molar composition.

calculate(**state)

Calculate the density at the specified temperature, pressure, and composition.

Parameters:
  • T – [K] temperature
  • P – [Pa] pressure
  • x – [mole fraction] dictionary of compounds and mole fractions
Returns:

[kg/m3] density

The **state parameter contains the keyword argument(s) specified above that are used to describe the state of the material.