sandlersteam.state module

class sandlersteam.state.State(*args, **kwargs)[source]

Bases: ThermodynamicState

Thermodynamic state of steam/water.

Molwt: float = 18.01528

Molar weight in g/mol

Pc: Quantity = <Quantity(22.12, 'megapascal')>

Critical pressure

Tc: Quantity = <Quantity(374.15, 'degree_Celsius')>

Critical temperature

description: str = 'Sandler Steam Table State'
get_default_unit(var: str) Unit[source]

Get the default unit for a given state variable.

Parameters:

var (str) – State variable name (e.g., ‘P’, ‘T’, ‘v’, ‘u’, ‘h’, ‘s’, ‘x’)

Returns:

Default unit for the variable

Return type:

pint.Unit

name: str = 'Sandler-Steam'

Name of the thermodynamic state

resolve() bool[source]

Resolve all state variables from the two input variables. This is where you’d call your steam tables and calculate everything.

sandlersteam.state.get_tables()[source]

Get or create the singleton tables instance.