Closed BenPortner closed 1 year ago
@BenPortner, thanks for posting this.
For now you can use the following:
import thermosteam as tmo
h2 = tmo.Chemical('H2')
Cng = h2.Cn.g
Cng.method = "CoolProp"
Cng.extrapolation = None
h2.reset_free_energies()
tmo.settings.set_thermo([h2])
I'll try to get the following to work for all properties later on:
h2 = tmo.Chemical('H2', Cn) # Where Cn can be a function, constant, TDependentProperty (if phase given) or PhaseHandle (if no phase given)
h2 = tmo.Chemical('H2', Cnl=Cnl, Cng=Cng, Cns=Cns) # Where Cn{x} can be a function, constant, or TDependentProperty
Thanks, Have a nice day!
What is the "proper" way to change the heat capacity calculation method in thermosteam? I tried the following: