Command line tool
Synopsis
swEOS [ -D [ dimension ]] [ -V [ variables ] ] [ -P [\(p_{bar}\)] ] [ -T [\(T_{^{\circ}C}\)] ] [ -X [\(x_{wt. NaCl}\)] ] [ -H [\(h_{kJ/kg}\)] ] [ -R min1/delta1/max1/min2/delta2/max2/min3/delta3/max3 ] [ -G [inputfile] ] [ -O [outputfile] ] [ -t [threads] ] [ -n ] [ -h ]
Note: No space is allowed between the option flag and the associated arguments.
Description
swEOS can calculate phase relations and thermodynamic properties of salt water in single point, one-dimension, two-dimension and three-dimension, respectively.
Required Arguments
- -D [ dimension ]
Sets dimension. This is the first key option, the available arguments are 0, 1, 2 and 3.
0 means single point calculation. If -D is set to 0, the -V option only support PTX or PHX. In addition, the pressure, salinity, temperature or enthalpy must be specified by -P, -X, -T or -H option, respectively.
1 means only one variable changes and the others are set to fixed value. If -D is set to 1, the -V option only support P, T, X, or H. The range of variable specified by -V option is set by -R option. And the other variables are set to fixed value by -P, -X, -T or -H options. The result will be saved to file. If the output file name is not specified by -O option, swEOS will use the default file name and print the file path in terminal.
2 means change two variables and fixed the third variable. Similar to -D1 case.
3 means no fixed variable. Similar to -D1 case.
- -V [ variables ]
Sets variables accroding to -D option. This is the second key option, the available arguments are PTX, PHX, P, T, X, H, PT, PX, TX, PH and HX.
PTX, if argument of -D option is 0 (single point or multiple points case), then the pressure, temperature and salinity is set by -P, -T and -X option, respectively. While if argument of -D is 3 (three dimension case), the range of pressure, temperature and salinity must be specified by -R option in the same order of argument of -V option. Therefore, for the same calculation, -V option can be PTX, PXT, TPX, TXP, XPT and XTP unless you set -R option in the save order. For example,
-VXPT -R0/0.1/1/5/1/400/0/1/100
means salinity in range of [0, 1] with interval of 0.1, pressure in range of [5, 400] bar with interval of 1 bar, temperature in range of [0, 100] \(^{\circ}\text{C}\) with interval 1 \(^{\circ}\text{C}\) . Alternately, you can also do the same thing using command of -V TPX -R 0/1/100/5/1/400/0/0.1/1 .PHX, similar to PTX, it just replaced temperature with enthalpy.
T. This is only valid when argument of -D option is 1 (one dimension case). It means temperature is the independent variable, its range is specified by -R option, e.g.
-R0/1/100
means temperature in range of [0, 100] \(^{\circ}\text{C}\) with interval of 1 \(^{\circ}\text{C}\), pressure and salinity are fixed by -P and -X option, respectively. In addition, the output file name has to be specified by -O option, will write as csv file format. P, X, H similar to T.PT. This is only valid when argument of -D option is set to 2 (two dimension case). It means pressure and temperature are the independent variable, their range are specified by -R option, e.g.
-R5/1/500/0/1/100
means temperature in range of [0, 100] \(^{\circ}\text{C}\) with interval of 1 \(^{\circ}\text{C}\), pressure in range of [5, 500] bar with interval of 1 bar. Salinity is the fixed variable and the fixed value is specified by -X option. Note that it doesn’t matter what the order of variable follow -V option, e.g.-VPT
and-VTP
are all valid, but the order of range follow -R option matters, it must be the same order with -V option. For example,-VPT -R5/1/500/0/100
and-VTP -R0/1/100/5/1/500
are equivalent. Of course, you also have to specify output file by -O option. PX, TX, PH, HX are similar with PT.
- -P [ pressure ]
Sets fixed pressure value, it should be a float or integer number. The unit is bar.
- -T [ temperature ]
Sets fixed temperature value, it should be a float or integer number. The unit is \(^{\circ}\text{C}\).
- -X [ salinity ]
Sets fixed salinity value, it should be a float or integer number. The unit is \(wt. NaCl\).
- -H [ enthalpy ]
Sets fixed enthalpy value, it should be a float or integer number.
- -R [ min/delta/max ]
Sets range and interval of independent variable(s), -R option must correspond to -V and -D options. For example,
-D1 -VT -R0/1/100
,-D2 -VTX -R0/1/100/0/0.1/0.8
,-D3 -VTXP -R0/1/100/0/0.1/0.8/5/1/500
.
- -G [ inputfile ]
Sets input file for multiple points calculation, the input file with three columns with delimiter of space or table(
\t
) correspondint to -V option. For example,-D0 -VPTX -Ginput.txt
means calculate EOS of some points, independent variables of each point are pressure, temperature and salinity which are listed ininput.txt
as belows316 10 0.032 316 11 0.032 316 12 0.032 316 13 0.032 316 14 0.032 316 15 0.032 316 16 0.032 316 17 0.032 316 18 0.032 316 19 0.032 316 20 0.032 316 21 0.032 316 22 0.032 316 23 0.032
316 74.3015 0.032 316 78.2695 0.032 316 82.2389 0.032 316 86.2098 0.032 316 90.1822 0.032 316 94.1561 0.032 316 98.1316 0.032 316 102.109 0.032 316 106.087 0.032 316 110.067 0.032 316 114.049 0.032 316 118.031 0.032 316 122.016 0.032 316 126.001 0.032 316 126.001 0.032
- -O [ outputfile ]
Sets output file name for one, two and three-dimensional calculation. The supported file format for 1D is csv, for 2D and 3D can be one of txt(delimiter is
\t
), csv(delimiter is,
) and vtk. Because temperature, pressure and salinity have different scaling, if open the vtk file directlly by paraview, you can not see anything in salinity dimension. Therefore there is a python script generated byswEOS
can deal with the scaling issue automatically. You just need to type a command in terminal to visualize the result. e.g.paraview --script=test3D.vtk.py
.
- -t [ thread ]
Sets number of threads for parallel computing.
- -n
If need to normalize the coordinates of result in vtk file, it is only valid in 3D calculation. Because the coordinates of the results are (P,T,X), (P,H,X), … with different scale, if use paraview to visualize the result, one have to deal with the coordinate scale. One option is set using -n to normalize the coordinate. Otherwise, a python script will be generated by swEOS automatically, one can use this python script to visualize results (see also Three-dimensional calculation).
3D calculation using 8 threads, H in [100, 600] kJ/kg, P in [10, 500] bar, X in [0.001, 1] [################################]100% Writing results to file ... Results have been saved to file: PTX.vtk Paraview-python script is generated as : PTX.vtk.py You can use command of paraview --script=PTX.vtk.py to visualize result in paraview
- -h
Print a short message about the syntax of the command.
Examples
Single point calculation
swEOS -D 0 -V PXT -P 316 -T 100 -X 0.032
swEOS -D 0 -V PXH -H 438 -P 316 -X 0.032
Multi-points calculation
swEOS -D 0 -V PHX -G phx.txt -O PHX_0D.csv
swEOS -D 0 -V PTX -G ptx.txt -O PTX_0D.csv
316 10 0.032
316 11 0.032
316 12 0.032
316 13 0.032
316 14 0.032
316 15 0.032
316 16 0.032
316 17 0.032
316 18 0.032
316 19 0.032
316 20 0.032
316 21 0.032
316 22 0.032
316 23 0.032
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
10 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1036.03 |
1036.03 |
0 |
0 |
74.3015 |
74.3015 |
0 |
0 |
1 |
0 |
0 |
0.00139265 |
0 |
0.032 |
0 |
11 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.81 |
1035.81 |
0 |
0 |
78.2695 |
78.2695 |
0 |
0 |
1 |
0 |
0 |
0.00135602 |
0 |
0.032 |
0 |
12 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.59 |
1035.59 |
0 |
0 |
82.2389 |
82.2389 |
0 |
0 |
1 |
0 |
0 |
0.00132091 |
0 |
0.032 |
0 |
13 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.35 |
1035.35 |
0 |
0 |
86.2098 |
86.2098 |
0 |
0 |
1 |
0 |
0 |
0.00128723 |
0 |
0.032 |
0 |
14 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.11 |
1035.11 |
0 |
0 |
90.1822 |
90.1822 |
0 |
0 |
1 |
0 |
0 |
0.00125491 |
0 |
0.032 |
0 |
15 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.86 |
1034.86 |
0 |
0 |
94.1561 |
94.1561 |
0 |
0 |
1 |
0 |
0 |
0.00122386 |
0 |
0.032 |
0 |
16 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.61 |
1034.61 |
0 |
0 |
98.1316 |
98.1316 |
0 |
0 |
1 |
0 |
0 |
0.00119402 |
0 |
0.032 |
0 |
17 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.34 |
1034.34 |
0 |
0 |
102.109 |
102.109 |
0 |
0 |
1 |
0 |
0 |
0.00116533 |
0 |
0.032 |
0 |
18 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.07 |
1034.07 |
0 |
0 |
106.087 |
106.087 |
0 |
0 |
1 |
0 |
0 |
0.00113773 |
0 |
0.032 |
0 |
19 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.79 |
1033.79 |
0 |
0 |
110.067 |
110.067 |
0 |
0 |
1 |
0 |
0 |
0.00111117 |
0 |
0.032 |
0 |
20 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.51 |
1033.51 |
0 |
0 |
114.049 |
114.049 |
0 |
0 |
1 |
0 |
0 |
0.00108558 |
0 |
0.032 |
0 |
21 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.21 |
1033.21 |
0 |
0 |
118.031 |
118.031 |
0 |
0 |
1 |
0 |
0 |
0.00106093 |
0 |
0.032 |
0 |
22 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.91 |
1032.91 |
0 |
0 |
122.016 |
122.016 |
0 |
0 |
1 |
0 |
0 |
0.00103717 |
0 |
0.032 |
0 |
23 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.61 |
1032.61 |
0 |
0 |
126.001 |
126.001 |
0 |
0 |
1 |
0 |
0 |
0.00101425 |
0 |
0.032 |
0 |
23 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.61 |
1032.61 |
0 |
0 |
126.001 |
126.001 |
0 |
0 |
1 |
0 |
0 |
0.00101425 |
0 |
0.032 |
0 |
316 74.3015 0.032
316 78.2695 0.032
316 82.2389 0.032
316 86.2098 0.032
316 90.1822 0.032
316 94.1561 0.032
316 98.1316 0.032
316 102.109 0.032
316 106.087 0.032
316 110.067 0.032
316 114.049 0.032
316 118.031 0.032
316 122.016 0.032
316 126.001 0.032
316 126.001 0.032
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
9.99903 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1036.03 |
1036.03 |
0 |
0 |
74.2976 |
74.2976 |
0 |
0 |
1 |
0 |
0 |
0.00139268 |
0 |
0.032 |
0 |
10.999 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.81 |
1035.81 |
0 |
0 |
78.2653 |
78.2653 |
0 |
0 |
1 |
0 |
0 |
0.00135606 |
0 |
0.032 |
0 |
11.9989 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.59 |
1035.59 |
0 |
0 |
82.2344 |
82.2344 |
0 |
0 |
1 |
0 |
0 |
0.00132095 |
0 |
0.032 |
0 |
12.9988 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.35 |
1035.35 |
0 |
0 |
86.2051 |
86.2051 |
0 |
0 |
1 |
0 |
0 |
0.00128727 |
0 |
0.032 |
0 |
13.9988 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1035.11 |
1035.11 |
0 |
0 |
90.1772 |
90.1772 |
0 |
0 |
1 |
0 |
0 |
0.00125495 |
0 |
0.032 |
0 |
14.9987 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.86 |
1034.86 |
0 |
0 |
94.1509 |
94.1509 |
0 |
0 |
1 |
0 |
0 |
0.0012239 |
0 |
0.032 |
0 |
15.9986 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.61 |
1034.61 |
0 |
0 |
98.1262 |
98.1262 |
0 |
0 |
1 |
0 |
0 |
0.00119406 |
0 |
0.032 |
0 |
16.9987 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.34 |
1034.34 |
0 |
0 |
102.103 |
102.103 |
0 |
0 |
1 |
0 |
0 |
0.00116537 |
0 |
0.032 |
0 |
17.9985 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1034.07 |
1034.07 |
0 |
0 |
106.081 |
106.081 |
0 |
0 |
1 |
0 |
0 |
0.00113777 |
0 |
0.032 |
0 |
18.9985 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.79 |
1033.79 |
0 |
0 |
110.061 |
110.061 |
0 |
0 |
1 |
0 |
0 |
0.00111121 |
0 |
0.032 |
0 |
19.9986 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.51 |
1033.51 |
0 |
0 |
114.043 |
114.043 |
0 |
0 |
1 |
0 |
0 |
0.00108562 |
0 |
0.032 |
0 |
20.9984 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1033.21 |
1033.21 |
0 |
0 |
118.025 |
118.025 |
0 |
0 |
1 |
0 |
0 |
0.00106097 |
0 |
0.032 |
0 |
21.9985 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.91 |
1032.91 |
0 |
0 |
122.01 |
122.01 |
0 |
0 |
1 |
0 |
0 |
0.00103721 |
0 |
0.032 |
0 |
22.9984 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.61 |
1032.61 |
0 |
0 |
125.995 |
125.995 |
0 |
0 |
1 |
0 |
0 |
0.00101429 |
0 |
0.032 |
0 |
22.9984 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.61 |
1032.61 |
0 |
0 |
125.995 |
125.995 |
0 |
0 |
1 |
0 |
0 |
0.00101429 |
0 |
0.032 |
0 |
22.9984 |
316 |
0.032 |
0 |
Single phase(Liquid) |
1032.61 |
1032.61 |
0 |
0 |
125.995 |
125.995 |
0 |
0 |
1 |
0 |
0 |
0.00101429 |
0 |
0.032 |
0 |
One-dimensional calculation
swEOS -D 1 -V H -X 0.032 -P 399 -R 43/1/100 -O H_1D.csv
swEOS -D 1 -V T -X 0.032 -P 399 -R 0/1/100 -O T_1D.csv
swEOS -D 1 -V P -X 0.032 -T 100 -R 5/1/100 -O P_1D.csv
swEOS -D 1 -V X -T 100 -P 399 -R 0/0.001/1 -O X_1D.csv
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
2 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.2 |
1041.2 |
0 |
0 |
50.6992 |
50.6992 |
0 |
0 |
1 |
0 |
0 |
0.00173781 |
0 |
0.032 |
0 |
3 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.03 |
1041.03 |
0 |
0 |
54.6358 |
54.6358 |
0 |
0 |
1 |
0 |
0 |
0.00168646 |
0 |
0.032 |
0 |
4 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1040.86 |
1040.86 |
0 |
0 |
58.5725 |
58.5725 |
0 |
0 |
1 |
0 |
0 |
0.00163743 |
0 |
0.032 |
0 |
5 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1040.68 |
1040.68 |
0 |
0 |
62.5098 |
62.5098 |
0 |
0 |
1 |
0 |
0 |
0.00159059 |
0 |
0.032 |
0 |
6 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1040.49 |
1040.49 |
0 |
0 |
66.4479 |
66.4479 |
0 |
0 |
1 |
0 |
0 |
0.00154583 |
0 |
0.032 |
0 |
… |
|||||||||||||||||||
96 |
399 |
0.032 |
0 |
Single phase(Liquid) |
999.76 |
999.76 |
0 |
0 |
424.937 |
424.937 |
0 |
0 |
1 |
0 |
0 |
0.000335152 |
0 |
0.032 |
0 |
97 |
399 |
0.032 |
0 |
Single phase(Liquid) |
999.113 |
999.113 |
0 |
0 |
428.951 |
428.951 |
0 |
0 |
1 |
0 |
0 |
0.000331626 |
0 |
0.032 |
0 |
98 |
399 |
0.032 |
0 |
Single phase(Liquid) |
998.463 |
998.463 |
0 |
0 |
432.966 |
432.966 |
0 |
0 |
1 |
0 |
0 |
0.000328166 |
0 |
0.032 |
0 |
99 |
399 |
0.032 |
0 |
Single phase(Liquid) |
997.809 |
997.809 |
0 |
0 |
436.981 |
436.981 |
0 |
0 |
1 |
0 |
0 |
0.000324769 |
0 |
0.032 |
0 |
100 |
399 |
0.032 |
0 |
Single phase(Liquid) |
997.151 |
997.151 |
0 |
0 |
440.998 |
440.998 |
0 |
0 |
1 |
0 |
0 |
0.000321433 |
0 |
0.032 |
0 |
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
100 |
10 |
0.032 |
0 |
Single phase(Liquid) |
980.288 |
980.288 |
0 |
0 |
410.864 |
410.864 |
0 |
0 |
1 |
0 |
0 |
0.000310974 |
0 |
0.032 |
0 |
100 |
11 |
0.032 |
0 |
Single phase(Liquid) |
980.332 |
980.332 |
0 |
0 |
410.942 |
410.942 |
0 |
0 |
1 |
0 |
0 |
0.000311001 |
0 |
0.032 |
0 |
100 |
12 |
0.032 |
0 |
Single phase(Liquid) |
980.376 |
980.376 |
0 |
0 |
411.019 |
411.019 |
0 |
0 |
1 |
0 |
0 |
0.000311028 |
0 |
0.032 |
0 |
100 |
13 |
0.032 |
0 |
Single phase(Liquid) |
980.42 |
980.42 |
0 |
0 |
411.096 |
411.096 |
0 |
0 |
1 |
0 |
0 |
0.000311055 |
0 |
0.032 |
0 |
100 |
14 |
0.032 |
0 |
Single phase(Liquid) |
980.465 |
980.465 |
0 |
0 |
411.173 |
411.173 |
0 |
0 |
1 |
0 |
0 |
0.000311081 |
0 |
0.032 |
0 |
… |
|||||||||||||||||||
100 |
95 |
0.032 |
0 |
Single phase(Liquid) |
984.088 |
984.088 |
0 |
0 |
417.43 |
417.43 |
0 |
0 |
1 |
0 |
0 |
0.000313254 |
0 |
0.032 |
0 |
100 |
96 |
0.032 |
0 |
Single phase(Liquid) |
984.133 |
984.133 |
0 |
0 |
417.508 |
417.508 |
0 |
0 |
1 |
0 |
0 |
0.00031328 |
0 |
0.032 |
0 |
100 |
97 |
0.032 |
0 |
Single phase(Liquid) |
984.177 |
984.177 |
0 |
0 |
417.585 |
417.585 |
0 |
0 |
1 |
0 |
0 |
0.000313307 |
0 |
0.032 |
0 |
100 |
98 |
0.032 |
0 |
Single phase(Liquid) |
984.222 |
984.222 |
0 |
0 |
417.662 |
417.662 |
0 |
0 |
1 |
0 |
0 |
0.000313334 |
0 |
0.032 |
0 |
100 |
99 |
0.032 |
0 |
Single phase(Liquid) |
984.266 |
984.266 |
0 |
0 |
417.74 |
417.74 |
0 |
0 |
1 |
0 |
0 |
0.000313361 |
0 |
0.032 |
0 |
100 |
100 |
0.032 |
0 |
Single phase(Liquid) |
984.311 |
984.311 |
0 |
0 |
417.817 |
417.817 |
0 |
0 |
1 |
0 |
0 |
0.000313388 |
0 |
0.032 |
0 |
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
100 |
399 |
0 |
0 |
Single phase(Liquid) |
976.076 |
976.076 |
0 |
0 |
449.16 |
449.16 |
0 |
0 |
1 |
0 |
0 |
0.00029246 |
0 |
0 |
0 |
100 |
399 |
0.001 |
0 |
Single phase(Liquid) |
976.729 |
976.729 |
0 |
0 |
448.896 |
448.896 |
0 |
0 |
1 |
0 |
0 |
0.00029413 |
0 |
0.001 |
0 |
100 |
399 |
0.002 |
0 |
Single phase(Liquid) |
977.382 |
977.382 |
0 |
0 |
448.632 |
448.632 |
0 |
0 |
1 |
0 |
0 |
0.00029538 |
0 |
0.002 |
0 |
100 |
399 |
0.003 |
0 |
Single phase(Liquid) |
978.036 |
978.036 |
0 |
0 |
448.369 |
448.369 |
0 |
0 |
1 |
0 |
0 |
0.000296513 |
0 |
0.003 |
0 |
… |
|||||||||||||||||||
100 |
399 |
0.994 |
3 |
Liquid + Halite |
2133.81 |
1182.84 |
0 |
2148.37 |
109.823 |
391.953 |
0 |
107.446 |
0.0150758 |
0 |
0.984924 |
0.000564111 |
0 |
0.282037 |
0 |
100 |
399 |
0.995 |
3 |
Liquid + Halite |
2136.23 |
1182.84 |
0 |
2148.37 |
109.427 |
391.953 |
0 |
107.446 |
0.0125774 |
0 |
0.987423 |
0.000564111 |
0 |
0.282037 |
0 |
100 |
399 |
0.996 |
3 |
Liquid + Halite |
2138.64 |
1182.84 |
0 |
2148.37 |
109.031 |
391.953 |
0 |
107.446 |
0.0100733 |
0 |
0.989927 |
0.000564111 |
0 |
0.282037 |
0 |
100 |
399 |
0.997 |
3 |
Liquid + Halite |
2141.07 |
1182.84 |
0 |
2148.37 |
108.634 |
391.953 |
0 |
107.446 |
0.00756352 |
0 |
0.992436 |
0.000564111 |
0 |
0.282037 |
0 |
100 |
399 |
0.998 |
3 |
Liquid + Halite |
2143.5 |
1182.84 |
0 |
2148.37 |
108.238 |
391.953 |
0 |
107.446 |
0.00504806 |
0 |
0.994952 |
0.000564111 |
0 |
0.282037 |
0 |
100 |
399 |
0.999 |
3 |
Liquid + Halite |
2145.93 |
1182.84 |
0 |
2148.37 |
107.842 |
391.953 |
0 |
107.446 |
0.0025269 |
0 |
0.997473 |
0.000564111 |
0 |
0.282037 |
0 |
T(C) |
P(bar) |
X |
Phase Index |
Phase Region |
Bulk density(kg/m3) |
Liquid density(kg/m3) |
Vapour density(kg/m3) |
Halite density(kg/m3) |
Bulk enthalpy(kJ/kg) |
Liquid enthalpy(kJ/kg) |
Vapour enthalpy(kJ/kg) |
Halite enthalpy(kJ/kg) |
Liquid Saturation |
Vapour Saturation |
Halite Saturation |
Liquid viscosity |
Vapour viscosity |
Liquid salinity |
Vapour salinity |
1.00948 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.35 |
1041.35 |
0 |
0 |
46.7996 |
46.7996 |
0 |
0 |
1 |
0 |
0 |
0.00179106 |
0 |
0.032 |
0 |
1.26345 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.32 |
1041.32 |
0 |
0 |
47.7996 |
47.7996 |
0 |
0 |
1 |
0 |
0 |
0.00177718 |
0 |
0.032 |
0 |
1.51743 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.28 |
1041.28 |
0 |
0 |
48.7995 |
48.7995 |
0 |
0 |
1 |
0 |
0 |
0.00176346 |
0 |
0.032 |
0 |
1.77142 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.24 |
1041.24 |
0 |
0 |
49.7994 |
49.7994 |
0 |
0 |
1 |
0 |
0 |
0.00174989 |
0 |
0.032 |
0 |
2.02541 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.2 |
1041.2 |
0 |
0 |
50.7993 |
50.7993 |
0 |
0 |
1 |
0 |
0 |
0.00173648 |
0 |
0.032 |
0 |
2.27941 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.15 |
1041.15 |
0 |
0 |
51.7992 |
51.7992 |
0 |
0 |
1 |
0 |
0 |
0.00172323 |
0 |
0.032 |
0 |
2.53341 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.11 |
1041.11 |
0 |
0 |
52.7991 |
52.7991 |
0 |
0 |
1 |
0 |
0 |
0.00171013 |
0 |
0.032 |
0 |
2.78742 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1041.07 |
1041.07 |
0 |
0 |
53.799 |
53.799 |
0 |
0 |
1 |
0 |
0 |
0.00169718 |
0 |
0.032 |
0 |
… |
|||||||||||||||||||
13.9466 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1038.67 |
1038.67 |
0 |
0 |
97.7957 |
97.7957 |
0 |
0 |
1 |
0 |
0 |
0.00125143 |
0 |
0.032 |
0 |
14.1997 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1038.61 |
1038.61 |
0 |
0 |
98.7957 |
98.7957 |
0 |
0 |
1 |
0 |
0 |
0.00124356 |
0 |
0.032 |
0 |
14.4526 |
399 |
0.032 |
0 |
Single phase(Liquid) |
1038.54 |
1038.54 |
0 |
0 |
99.7956 |
99.7956 |
0 |
0 |
1 |
0 |
0 |
0.00123577 |
0 |
0.032 |
0 |
Two-dimensional calculation
swEOS -D 2 -V PT -R 10/0.1/100/1/1/500 -X 0.032 -O PT_2D.vtk
swEOS -D 2 -V PX -R 100/0.1/800/0/0.01/1 -T 100 -O PX_2D.vtk
swEOS -D 2 -V TX -R 1/1/800/0/0.01/1 -P 100 -O TX_2D.vtk
swEOS -D 2 -V PH -R 100/1/800/100/1/700 -X 0.032 -O PH_2D.vtk
swEOS -D 2 -V XH -R 0.001/0.001/1/100/1/700 -P 200 -O XH_2D.vtk
Three-dimensional calculation
swEOS -D 3 -V PTX -R 10/10/500/1/10/600/0/0.01/1 -O PTX.vtk
swEOS -D 3 -V PHX -R 10/10/500/100/10/600/0.001/0.01/1 -O PTX.vtk
Phase region index table
Phase region index |
Phase region |
0 |
Single phase(Liquid) |
1 |
Liquid + Vapor at X=0 |
2 |
Pure vapour phase |
3 |
Liquid + Halite |
4 |
Vapour + Halite |
5 |
Vapour + Liquid + Halite |
6 |
Vapour + Liquid on the liquid side |
7 |
Vapour + Liquid on the vapour side |