Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No properties method for SinglePT and MultiPT #14

Open
ghost opened this issue Feb 28, 2021 · 0 comments
Open

No properties method for SinglePT and MultiPT #14

ghost opened this issue Feb 28, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2021

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:356

Is this still work in progress as the readme seems to indicate ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants