Skip to content

ePCSAFT example #270

Answered by g-bauer
svenpohl1991 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Sven,

here is an example for MIAC of NaCl (modeled as two components) in water. The paths used assume that you work inside the "examples" folder. I cut it into three parts.

1. Imports and helper functions

Imports for FeOs, SI units and plotting and helper functions to calculate the mean ionic activity coefficient:

from feos.eos import *
from feos.epcsaft import *
import si_units as si
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

sns.set_context('notebook')
sns.set_palette('Dark2')
sns.set_style('ticks')

def molality_to_mole_fraction(
    molality_solute: si.SIObject, 
    molarweight_solvent: si.SIObject
) -> float:
    """Calculate mole fraction of solute…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by svenpohl1991
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