State struct
#269
Replies: 4 comments 16 replies
-
|
Coolprop supports the following:
|
Beta Was this translation helpful? Give feedback.
-
|
Hello, It has the following vars mutable struct State
model ::EoSModel
z:: AbstractVector
p::Any
T::Any
h::Any
s::Any
v::Any
q::Any
method::Symbol
endI store the For example I can do the following: model = cPR(["pentane","isobutane"],idealmodel = ReidIdeal)
z = [1.0,1.0]; p = 101325*3; T = 350; h = Clapeyron.enthalpy(model,p,T,z)
S = State(model=model,z= z,p = p,h = h)Here I define the julia> entropy(S)
-49.84418964661152I would be glad to contribute to this if it is still of interest. Thank you, |
Beta Was this translation helpful? Give feedback.
-
|
Hello, This was originally a discussion on how to support multiple inputs, apart from PT, when i wrote this, i just didn't have any idea on how to implement those. Now, we have a sort of structure on which we can work with:
With that said, what do you have in mind? a way to call a flash with the keyword arguments defining the type of flash? |
Beta Was this translation helpful? Give feedback.
-
|
I had made this as a user friendly (just for myself haha) way to go through all the various Flash computations ( I was looking for something like
Yes exactly as we define the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
with #268 , the need for
Statestruct seems to arise. this discussion is to discuss the details of aStatestruct for Clapeyron.Statestruct? : it is a struct that contains a set of thermodynamic properties that constitute a complete state. For example: T = 300K, p = 1 atm, z = [0.5,0.5] is a complete state for a 2-component model. there are also states that depend on the phase (liquid, gas, solid) or equilibria conditions (at saturation, critical point)Stateconstructor?Stateconstructor?Beta Was this translation helpful? Give feedback.
All reactions