Skip to content
Discussion options

You must be logged in to vote

Hi @R-DeCassia,

You can indeed solve for the VLE of an alkane + water + sodium chloride mixture using tp_flash. To exclude the ions from the vapor phase, you would just need to specify the nonvolatiles argument (although there is currently a typo in the code where you need to specify noncondensables instead). Here's an example:

 julia> model = SAFTVREMie(["water","ethane"],["sodium","chloride"]) # you'll have to define a few parameters manually
Explicit Electrolyte Model with 4 components:
 "water"
 "ethane"
 "sodium" (+1)
 "chloride" (-1)
Neutral Model: SAFTVRMie{BasicIdeal, Float64}
Ion Model: MSABorn{Schreckenberg}
RSP Model: Schreckenberg

julia> T=298.15;

julia> p=1e5;

julia> z=[0.495

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by R-DeCassia
Comment options

You must be logged in to vote
2 replies
@pw0908
Comment options

@R-DeCassia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants