From 08a717cbe491b8efc4b66892464d355cc3ca4f0b Mon Sep 17 00:00:00 2001 From: Zach Baird <22378936+zmeri@users.noreply.github.com> Date: Sun, 7 Mar 2021 20:59:31 +0200 Subject: [PATCH] Added additional example --- docs/README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/README.rst b/docs/README.rst index 35c3d27..c5664b9 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -40,6 +40,21 @@ Example pyargs = {'m':m, 's':s, 'e':e, 'e_assoc':eAB, 'vol_a':volAB} den = pcsaft_den(t, p, x, pyargs, phase='liq') print('Density of water at {} K:'.format(t), den, 'mol m^-3') + + # Water using 4C association scheme + x = np.asarray([1.]) + m = np.asarray([1.2047]) + e = np.asarray([353.95]) + volAB = np.asarray([0.0451]) + eAB = np.asarray([2425.67]) + assoc_schemes = ['4c'] + + t = 274 + p = 101325 + s = np.asarray([2.7927 + 10.11*np.exp(-0.01775*t) - 1.417*np.exp(-0.01146*t)]) # temperature dependent sigma is used for better accuracy + pyargs = {'m':m, 's':s, 'e':e, 'e_assoc':eAB, 'vol_a':volAB, 'assoc_scheme':assoc_schemes} + den = pcsaft_den(t, p, x, pyargs, phase='liq') + print('Density of water at {} K:'.format(t), den, 'mol m^-3') Dependencies ------------