sandlerprops.compound module¶
- class Compound[source]¶
Bases:
objectChemical compound with thermophysical properties.
- __init__(No=0, Formula='', Name='', Molwt=<factory>, Tfp=<factory>, Tb=<factory>, Tc=<factory>, Pc=<factory>, Vc=<factory>, Zc=0.0, Omega=0.0, Dipm=<factory>, CpA=0.0, CpB=0.0, CpC=0.0, CpD=0.0, dHf=<factory>, dGf=<factory>, Eq=0, VpA=0.0, VpB=0.0, VpC=0.0, VpD=0.0, Tmin=<factory>, Tmax=<factory>, Lden=0.0, Tden=<factory>, charge=0, atomset=<factory>, atomdict=<factory>, metadata=<factory>)¶
- Parameters:
No (int)
Formula (str)
Name (str)
Molwt (Quantity)
Tfp (Quantity)
Tb (Quantity)
Tc (Quantity)
Pc (Quantity)
Vc (Quantity)
Zc (float)
Omega (float)
Dipm (Quantity)
CpA (float)
CpB (float)
CpC (float)
CpD (float)
dHf (Quantity)
dGf (Quantity)
Eq (int)
VpA (float)
VpB (float)
VpC (float)
VpD (float)
Tmin (Quantity)
Tmax (Quantity)
Lden (float)
Tden (Quantity)
charge (int)
atomset (set)
atomdict (dict)
metadata (dict)
- Return type:
None
- get_Cp_coeffs()[source]¶
Get ideal gas heat capacity coefficients as dict.
Returns coefficients for: Cp = a + b*T + c*T^2 + d*T^3 where Cp is in J/(mol*K) and T is in K (dimensionless values).
- property Cp¶
Returns ideal gas heat capacity coefficients as a numpy array
- Cp_ideal_gas(T)[source]¶
Calculate ideal gas heat capacity at temperature T.
- Parameters:
T (Quantity) – Temperature
- Returns:
Heat capacity in J/(mol-K)
- Return type:
Quantity
- bankblock(B, b)[source]¶
bank a block into the list of blocks if it is non-empty (source: https://stackoverflow.com/users/5079316/olivier-melan%c3%a7on)
- blockify(bl)[source]¶
parse the byte_levels returned from the byte-wise de-nester into blocks, where a block is a two-element list, where first element is a block and second is an integer subscript >= 1. A “primitive” block is one in which the first element is not a list, but instead a string that indentifies a chemical element. (source: https://stackoverflow.com/users/5079316/olivier-melan%c3%a7on)
- flattify(B)[source]¶
recursively flatten nested blocks in place (source: https://stackoverflow.com/users/5079316/olivier-melan%c3%a7on)
- Parameters:
B (list) – list of blocks to flattify
- Return type:
None
- my_flatten(L, size=2)[source]¶
recursively flatten a nested list of blocks into a flat list of element:number pairs (source: https://stackoverflow.com/users/5079316/olivier-melan%c3%a7on)