sandlersteam package

class sandlersteam.SaturatedSteamTables[source]

Bases: object

Saturated steam tables based on Sandler’s Steam Tables Data from: Sandler, S. I. (2017). Chemical, biochemical, and engineering thermodynamics 5th ed. John Wiley & Sons.

colorder = ['P', 'T', 'vL', 'vV', 'uL', 'Du', 'uV', 'hL', 'Dh', 'hV', 'sL', 'Ds', 'sV']
data_path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/sandlersteam/checkouts/latest/src/sandlersteam/resources/data')
tablesP = [PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/sandlersteam/checkouts/latest/src/sandlersteam/resources/data/SandlerSatdSteamTableP1.txt'), PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/sandlersteam/checkouts/latest/src/sandlersteam/resources/data/SandlerSatdSteamTableP2.txt')]
tablesT = [PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/sandlersteam/checkouts/latest/src/sandlersteam/resources/data/SandlerSatdSteamTableT1.txt'), PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/sandlersteam/checkouts/latest/src/sandlersteam/resources/data/SandlerSatdSteamTableT2.txt')]
class sandlersteam.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.

class sandlersteam.UnsaturatedSteamTable(phase: str, table_path: str)[source]

Bases: object

Unsaturated steam table for either superheated vapor (phase=’V’) or subcooled liquid (phase=’L’)

Bilinear(specdict: dict[str, float]) dict[str, float][source]

General bilinear interpolation dispatcher

PThBilinear(specdict)[source]

Bilinear interpolation given P and another property (v, u, s, h, but not T)

TPBilinear(specdict: dict)[source]

Bilinear interpolation given T and P

TThBilinear(specdict)[source]

Bilinear interpolation given T and another property (v, u, s, h, but not P)

ThThBilinear(specdict: dict[str, float]) dict[str, float][source]

Bilinear interpolation given two properties from v, u, s, h (not T or P)

minP_at_T(T: float) float[source]

Minimum pressure at given temperature in C

minT_at_P(P: float) float[source]

Minimum temperature at given pressure in MPa

minTh_at_P(th: str, P: float) float[source]

Minimum temperature at given pressure in MPa for specified property th (th = ‘v’, ‘u’, ‘s’, or ‘h’)

minTh_at_T(th: str, T: float) float[source]

Minimum pressure at given temperature in C for specified property th (th = ‘v’, ‘u’, ‘s’, or ‘h’)

sandlersteam.get_tables()[source]

Get or create the singleton tables instance.

Submodules