EngCoolProp Functions¶
- class engcoolprop.ec_fluid.EC_Fluid(symbol='N2', T=530.0, P=1000.0, child=1)¶
- Qdescription()¶
CoolProp Q values areDifferent from RefProp:
#:c == RefProp == #:c q--vapor quality on a MOLAR basis [moles vapor/total moles] #:c q < 0 indicates subcooled (compressed) liquid #:c q = 0 indicates saturated liquid #:c q = 1 indicates saturated vapor #:c q > 1 indicates superheated vapor #:c q = -998 subcooled liquid, but quality not defined (p > Pc) #:c q = 999 indicates supercritical state (t > Tc) and (p > Pc) #: #:c == CoolProp == #:c q--vapor quality on a MASS basis [mass vapor/total mass] #:c q indicates subcooled (compressed) liquid #:c q indicates saturated liquid #:c q indicates saturated vapor #:c q < 0 indicates superheated vapor OR (p > Pc) #:c q subcooled liquid, but quality not defined (p > Pc) #:c q indicates supercritical state (t > Tc) and (p > Pc) #: #:Phase String Phase Region #:liquid p < pcrit & T < Tcrit ; above saturation #:gas p < pcrit & T < Tcrit ; below saturation #:twophase p < pcrit & T < Tcrit ; mixed liquid/gas #: #:supercritical_liquid p > pcrit & T < Tcrit #:supercritical_gas p < pcrit & T > Tcrit #:supercritical p > pcrit & T > Tcrit
- compressibility()¶
returns Z
- 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
- dH_FromHref()¶
Calculate Enthalpy difference from self.Href
- dHvap(P=None)¶
calculate heat of vaporization at input P or self.P (BTU/lbm)
- gamma()¶
calculate ratio of specific heats from Cp and Cv
- getSatP(T=None)¶
Get Psat for Liquid at input T or self.T
- getSatPandDens(T=None)¶
Get Psat and rho for both Liquid & Gas at input T or self.T
- getSatT(P=None)¶
Get Tsat for Liquid at input P or self.P
- getSatTandDens(P=None)¶
Get Tsat and Density for both Liquid & Gas at input P or self.P
- getStrTPD()¶
create a string from the TPDEHS properties
- getStrTPDphase()¶
create a string from the TPDEHS properties
- getStrTransport()¶
create a string from the Transport properties
- html_desc()¶
html output a multiline property summary with units
- initFromObj(obj)¶
initialize properties from another n_fluid object
- newDE(D=0.1, E=50.0)¶
Calc properties at new D and E
- printCriticalProps()¶
print a multiline property summary with units
- printProps()¶
print a multiline property summary with units
- printTPD()¶
print a string from the TPDEHS properties
- restoreFromDup()¶
restore properties from duplicate n_fluid
- saveToDup()¶
save properties to duplicate n_fluid
- setPD(P=1000.0, D=0.01)¶
Calc props from P and D
- setPH(P, H)¶
Calc properties at P and H
- setProps(**inpD)¶
Generic call using any two of supported inputs T,P,D,Q,S,H,E:
#: for example #: ec.setProps(T=100, D=0.1) #: ec.setProps(D=0.1, T=100) #: ec.setProps(P=100, H=20)
- setPropsFromAS()¶
Assume that self.AS (AbstractState) has been set elsewhere.
- setTD(T=530.0, D=0.01)¶
Calc P from T and D
- setTP(T=530.0, P=1000.0)¶
Calc props from T and P
- surfTen()¶
calculate surface tension, lbf / inch