-
Notifications
You must be signed in to change notification settings - Fork 52
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
Query on Property Calculation in the Two-Phase Region #303
Comments
Hello, |
Yes indeed :) |
i think i got an idea on how to do this.
the idea is to add flash functions in the following way
A good thing with |
Hello, Because using CoolProp
fluid = "Water"
p = 101325
H_g = PropsSI("H","Q",1,"P",p,fluid);
H_l = PropsSI("H","Q",0,"P",p,fluid);
H_ = (H_g + H_l)/2 # in TwoPhase region
@show PhaseSI("H",H_,"P",p,fluid)
@show PropsSI("S","H",H_,"P",p,fluid) Here we can compute entropy in two-phase. But if we do the same with Unless there is something different in Do correct me if I am wrong here. |
You are correct, |
Ah I see. I'll check this too. Thanks |
You are correct, |
on the current master:
|
I get this error when running the script ERROR: UndefVarError: `spec` not defined in `Clapeyron`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] Clapeyron.FlashSpecifications(spec1::typeof(pressure), val1::Float64, spec2::typeof(enthalpy), val2::Float64)
@ Clapeyron C:\Users\sush9\.julia\packages\Clapeyron\splf7\src\methods\property_solvers\multicomponent\flash.jl:133 I added the master branch using add https://github.com/ClapeyronThermo/Clapeyron.jl.git status
|
huh, weird, it works in my REPL right now, let me check. btw, the formulation of the ph flash was made totally generic, so the next steps are adding a ps flash (and other specifications) |
This is actually amazing. This is very close to CoolProp or RefProp |
There is a difference in your version or the version on the master branch? (ClapeyronFlash) pkg> precompile
Precompiling project...
✗ Clapeyron
0 dependencies successfully precompiled in 5 seconds. 121 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
Clapeyron
Failed to precompile Clapeyron [7c7805af-46cc-48c9-995b-ed0ed2dc909a] to "C:\\Users\\sush9\\.julia\\compiled\\v1.11\\Clapeyron\\jl_CD2A.tmp".
ERROR: LoadError: UndefVarError: `helmholtz_energy` not defined in `Clapeyron`
Stacktrace:
[1] top-level scope
@ C:\Users\sush9\.julia\packages\Clapeyron\GVLnz\src\methods\property_solvers\multicomponent\flash.jl:212 |
yes, fixing that right now. by the way, the current result type from ph_flash could change between master and the release, but the way to use it ( |
It works! thank you |
Can we close this issue? |
This needs a release and a lot of polish, so not now. |
Hello,
I am currently working on computing bulk properties, such as density, volume, temperature, entropy, and specific heats (Cp, Cv), using enthalpy and pressure as inputs.
In most cases, my local solver finds the temperature via the
Tproperty
function and then computes the required property. This approach works well outside the two-phase region. However, I am looking for a robust method to handle calculations in the two-phase region as well.Specifically, I am searching for a tool similar to
PropsSI
that computes properties accurately using pressure and enthalpy. Is such functionality available in Clapeyron, or is there a recommended method for handling this?Your guidance would be greatly appreciated.
Thank you,
Sushrut
The text was updated successfully, but these errors were encountered: