EC_Incomp_Fluid Functions¶
Create a EC_Incomp_Fluid object like this:
from engcoolprop.ec_incomp_fluid import EC_Incomp_Fluid
# Create incompressible object. (without specifying state point)
ec_inc = EC_Incomp_Fluid(symbol="Water")
EC_Incomp_Fluid Description
CoolProp has a set of incompressible fluids EC_Incomp_Fluid is a wrapper of those fluids using Engineering Units.
EngCoolProp uses units of primarily inch, lbm, lbf, sec, BTU (some use of ft and hour).:
#:c The following are the default units for each property of Incompressible Fluids.
#:c
#:c T = Temperature = degR
#:c P = Pressure = psia
#:c D = Density = lbm/cu ft
#:c rho = Density = lbm/cu inch
#:c E = Internal Energy = BTU/lbm
#:c H = Enthalpy = BTU/lbm
#:c S = Entropy = BTU/lbm degR
#:c Cp = Heat Capacity (const. P) = BTU/lbm degR
#:c V = Viscosity = 1.0E5 * lbm/ft-sec
#:c C = Thermal Conductivity = BTU/ft-hr-R
EC_Incomp_Fluid Methods
- class engcoolprop.ec_incomp_fluid.EC_Incomp_Fluid(symbol='DowQ', T=None, P=None, Pmax=10000.0, show_warnings=2, auto_fix_value_errors=True)¶
- constH_newP(P=1000.0)¶
Calc properties at new P with same H
- constP_newH(H)¶
Calc properties at new H with same P
- constS_newP(P=1000.0)¶
Calc properties at new P with same S
- getStrTPD()¶
create a string from the TPDEHS properties
- getStrTransport()¶
create a string from the Transport properties
- get_Psat(T)¶
Given T in degR (Engineering units) return Psat in psia (if supported) NOTE: if not supported, return 0 for Psat
- get_Tsat(P)¶
Calculate Tsat at given P (psia). If P is greater than max Psat, simply return Tmax.
- pause_warnings()¶
Pause all warnings until self.show_warnings is changed
- printProps()¶
print a multiline property summary with units
- printSIProps()¶
print a multiline property summary with SI units
- printTPD()¶
print a string from the TPDEHS properties
- printTransport()¶
print a string of Transport properties
- restore_warnings()¶
Restore the self.show_warnings flag to the last pause_warnings condition
- setPD(P=1000.0, D=0.01)¶
Calc props from P and D NOTE: The pressure has NO EFFECT on calculated temperature for incompressible density.
- setPH(P, H)¶
Calc properties at P and H
- setPS(P, S)¶
Calc properties at P and H
- setProps(**inpD)¶
Generic call using any P with supported inputs T,D,S,H:
#: for example #: ec.setProps(T=100, P=200) #: ec.setProps(D=0.1, P=100) #: ec.setProps(P=100, H=20) #: #: Made so both: #: setProps(T=530, P=100) AND #: setProps(P=100, T=530) will work
- setTP(T=530.0, P=1000.0)¶
Calc props from T and P
- set_warnings(show_warnings=2)¶
Set the show_warnings flag