-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The readme states that
For total helmholtz equations, the following equations are provided: [...] with more to come. all functions accept the following states : [...]
state(p=p0,t=t0,...): Pressure-temperature. finds the gas and liquid phases, and returns the one with the least amount of gibbs
energy
However the following code :
using ThermoModels, ThermoState, Unitful
st = state(p = 1.0u"bar", t = 300.0u"K")
mass_enthalpy(IAPWS95(),st, u"kJ/kg")gives :
weird, v₁ =0.03627440313443364 and v₀ =0.03627440313443364
ERROR: LoadError: MethodError: no method matching mol_enthalpy_impl(::Tuple{ThermoState.Types.Pressure,ThermoState.Types.Temperature,ThermoState.Types.SingleComponent}, ::IAPWS95, ::Float64, ::Float64)
Closest candidates are:
mol_enthalpy_impl(::Tuple{ThermoState.Types.VolumeAmount,ThermoState.Types.Temperature,ThermoState.Types.SingleComponent}, ::ThermoModels.HelmholtzModel, ::Any, ::Any) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:99
mol_enthalpy_impl(::Tuple{ThermoState.Types.VolumeAmount,ThermoState.Types.Temperature,ThermoState.Types.MaterialCompounds}, ::ThermoModels.HelmholtzModel, ::Any, ::Any, ::Any) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:110
mol_enthalpy_impl(::ThermoModels.HelmholtzModel, ::Any...) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:304
Stacktrace:
[1] mol_enthalpy(::Tuple{ThermoState.Types.Pressure,ThermoState.Types.Temperature,ThermoState.Types.SingleComponent}, ::IAPWS95, ::ThermodynamicState{Tuple{Spec{ThermoState.Types.Pressure,Float64},Spec{ThermoState.Types.Temperature,Float64}},Tuple{}}, ::Unitful.FreeUnits{(J, mol^-1),𝐋 ^2 𝐌 𝐍 ^-1 𝐓 ^-2,nothing}) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:335
[2] mol_enthalpy(::IAPWS95, ::ThermodynamicState{Tuple{Spec{ThermoState.Types.Pressure,Float64},Spec{ThermoState.Types.Temperature,Float64}},Tuple{}}, ::Unitful.FreeUnits{(J, mol^-1),𝐋 ^2 𝐌 𝐍 ^-1 𝐓 ^-2,nothing}) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:309 (repeats 2 times)
[3] mass_enthalpy(::IAPWS95, ::ThermodynamicState{Tuple{Spec{ThermoState.Types.Pressure,Float64},Spec{ThermoState.Types.Temperature,Float64}},Tuple{}}, ::Unitful.FreeUnits{(kg^-1, kJ),𝐋 ^2 𝐓 ^-2,nothing}) at ~\.julia\packages\ThermoModels\BFqaa\src\base\helmholtz\helmholtz.jl:356Is this still work in progress as the readme seems to indicate ?
Metadata
Metadata
Assignees
Labels
No labels