You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if a relevant example is already available in the documentation, but I couldn't find one.
I am wondering how one would go about setting up an activity coefficient model, say UNIFAC, with a simple Antoine equation for the saturation pressure of the pure components (to do a simple VLE envelope at fixed pressure for example).
Is it possible in Clapeyron.jl? Any pointers appreciated! (I would be happy to do a proper PR to add the example, so that others profit as well)
The text was updated successfully, but these errors were encountered:
Yes!, we use CompositeModels for defining equilibria with different models, maybe something like this?
fluidmodel = CompositeModel(["octane","heptane"],liquid = RackettLiquid,saturation = DIPPR101Sat,gas = BasicIdeal)
#we create a fluid model with rackett liquid volume, ideal gas and DIPPR 101. If you perform equilibria with this, it will be done via raoult.
model = CompositeModel(["octane","heptane"],liquid = UNIFAC, fluid = fluidmodel)
#this model now uses activities in conjunction with the fluid model
check the CompositeModel docs for the combinations.
Funnily enough, I think we don't have an Antoine saturation method 😅, I can add one and release a new version of you wish.
hmm, I don't remember if we support that (mainly the liquid volumes), but I can do some changes to allow just passing a saturation model, and assume BasicIdeal for gas, and a dummy method for the liquid (NaNLiquid? )
Apologies if a relevant example is already available in the documentation, but I couldn't find one.
I am wondering how one would go about setting up an activity coefficient model, say UNIFAC, with a simple Antoine equation for the saturation pressure of the pure components (to do a simple VLE envelope at fixed pressure for example).
Is it possible in Clapeyron.jl? Any pointers appreciated! (I would be happy to do a proper PR to add the example, so that others profit as well)
The text was updated successfully, but these errors were encountered: