Stream output
The stream output JSON describes the output all equilibrium flash calculations. this output contains the following objects.
result | |
phases | contains the output information for each phase |
phaseSummary | contains information on whether a particular phase is present or not |
total | contains information of the total stream |
The sample below contains a condensed version of the stream output
{
"code": 200,
"result": {
"phases": {
...<snip>...
},
"phaseSummary": [
...<snip>...
],
"total": {
...<snip>...
}
},
"message": "Results returned successfully",
"status": "PROCESSED"
}
Phases in the system
Contains objects pertaining to each phase available in the equilibrium output
result.phases | type | description |
liquid1 | object | liquid1 phase information if phase is present |
vapor | object | vapor phase information if vapor phase is present |
solid | object | solid phase information if solid phase is present |
liquid2 | object | liquid2 phase information if liquid2 phase is present |
result.total has the information about the full stream
If a phase is not available the corresponding object will not be present.
The sample below contains a condensed version of the phase information under the result.phases object
{
"result": {
"phases": {
"liquid1": {
..<snip>...
},
"vapor": {
...<snip>...
},
"solid": {
...<snip>...
},
"liquid2": {
...<snip>...
}
},
"total": {
..<snip>...
}
}
}
Speciation information
Each phase object contains the following objects
result.phases.phase_name | type | description |
totalMolecularMoles | total molecular moles, also known as apparent moles in the phase | |
totalTrueMoles | total true moles in the phase | |
molecularConcentration.values | object | contains the amount of each molecular species given as "species_name" : number |
molecularConcentration.unit | string | unit for each species amount specified in molecularConcentration.values |
trueConcentration.values | object | contains the amount of each true species given as "species_name" : number |
trueConcentration.unit | string | unit for each species amount specified in trueConcentration.values |
here phase_name be either liquid1, vapor, solid, vapor or total
Here the names in the object molecularConcentration.values corresponds to the inflows names and the names in trueConcentration.values corresponds to the species names coming from the chemistry information function
molecularConcentration is a representation of true species concentration in molecular/inflow form. Users can specify the molecular conversion method as explained in Optional inputs.
Here the sample output for each phase is shown separately, but they are part of the same JSON output object in result.phases
{
"result": {
"phases": {
"liquid1": {
"totalMolecularMoles": {
"value": 21.226207616613667,
"unit": "mol"
},
"molecularConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.8980756720878806,
"CO2": 0.00012127280721685236,
"BENZENE": 0.00012121810265871872,
"HCL": 0.0,
"H2CO3": 0.0,
"NACL": 0.10168183416772372,
"NA2CO3.10H2O": 0.0,
"NA2CO3.1H2O": 0.0,
"NA2CO3.7H2O": 0.0,
"NA2CO3": 0.0,
"NA2O": 2.8345199111433006e-09,
"NA3HCO32": 0.0,
"NA5H3CO34": 0.0,
"NAHCO3": 0.0,
"NAOH.1H2O": 0.0,
"NAOH": 0.0,
"TRONA": 0.0,
"WEGSCHEIDER": 0.0
}
},
"totalTrueMoles": {
"value": 23.384516501904006,
"unit": "mol"
},
"trueConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.8151847728579172,
"CO2": 0.00010841376510336895,
"BENZENE": 0.00011003009678290568,
"HCL": 2.2808487226473268e-11,
"NAHCO3": 4.6343297486528063e-07,
"OHION": 1.3404451593976355e-12,
"CO3ION": 2.8319031932064318e-12,
"HCO3ION": 1.20254879862828e-06,
"HION": 1.6608253486241603e-06,
"NACO3ION": 2.5933560724207716e-12,
"NAION": 0.09229649908827389,
"CLION": 0.0922969573552263
}
},
"properties": {
"mass": {
"value": 469.8744595184318,
"unit": "g"
},
"enthalpy": {
"value": -6290492.86193959,
"unit": "J"
},
"ph": {
"value": 3.506293402644644,
"unit": ""
},
"ionicStrength": {
"value": 6.284844275084738,
"unit": ""
},
"volume": {
"value": 0.39889132965412266,
"unit": "L"
},
"osmoticPressure": {
"value": 417.3774507090581,
"unit": "atm"
},
"heatCapacity": {
"value": 0.6883875523093475,
"unit": "cal/g K"
},
"orp": {
"value": 0.0,
"unit": ""
},
"specificElectricalConductivity": {
"value": 0.3888779545938565,
"unit": "µmho/cm"
},
"molarElectricalConductivity": {
"value": 5.170668146037298,
"unit": "m2/ohm-mol"
},
"absoluteViscosity": {
"value": 1.1196506783843205,
"unit": "cP"
},
"relativeViscosity": {
"value": 2.046080906239711,
"unit": "cP"
},
"thermalConductivity": {
"value": 0.0,
"unit": "cal/hr m °C"
},
"idealStandardLiquidVolume": {
"value": 0.421019399748327,
"unit": "L"
},
"surfaceTension": {
"value": 0.0,
"unit": "N/m"
},
"interfacialTension": {
"value": 0.0,
"unit": "N/m"
},
"density": {
"value": 1177.9510472836255,
"unit": "kg/m3"
},
"hardness": {
"value": 0.0,
"unit": "mg/L of Mg+2 and Ca+2"
},
"ionicStrengthMBased": {
"value": 6.284844275084737,
"unit": "mol/kg"
},
"ionicStrengthXBased": {
"value": 0.09229815991645443,
"unit": "mol/mol"
},
"volumeStdConditions": {
"value": 0.3899494321783508,
"unit": "L"
},
"gibbsFreeEnergy": {
"value": -5405064.876853572,
"unit": "J"
},
"gibbsFreeEnergyStandardState": {
"value": -5364732.614802347,
"unit": "J"
},
"entropy": {
"value": 402.52249696366414,
"unit": "cal/K"
},
"entropyStandardState": {
"value": 368.1849240704805,
"unit": "cal/K"
},
"totalDissolvedSolids": {
"value": 316732.9367611623,
"unit": "mg/L"
}
},
"mobilities": {
"unit": "m2/s-volt",
"values": {
"OHION": 1.0477530322319145e-07,
"CO3ION": 4.5521284815508306e-08,
"HCO3ION": 2.6682810347057602e-08,
"HION": 1.7471316433726358e-07,
"NACO3ION": 2.02107319598793e-08,
"NAION": 3.01959373362478e-08,
"CLION": 4.429241371474645e-08
}
},
"selfDiffusivities": {
"unit": "m2/s",
"values": {
"H2O": 2.024176002497278e-09,
"CO2": 1.7484002869485418e-09,
"BENZENE": 9.881226550801429e-10,
"HCL": 1.6907916668742283e-09,
"NAHCO3": 8.584040486862172e-10,
"OHION": 3.6343124558205254e-09,
"CO3ION": 8.341437678389614e-10,
"HCO3ION": 9.836603781305234e-10,
"HION": 5.981318546296803e-09,
"NACO3ION": 7.383722894675519e-10,
"NAION": 1.1831936448580512e-09,
"CLION": 1.5679953664262656e-09
}
},
"gibbsFreeEnergy": {
"unit": "J/mol",
"values": {
"H2O": -239764.1869055229,
"CO2": -399634.43639125564,
"BENZENE": 119944.96048947786,
"HCL": -149450.0860740784,
"NAHCO3": -876259.3345219601,
"OHION": -218072.07804470454,
"CO3ION": -596014.4046546705,
"HCO3ION": -617706.5138436517,
"HION": -21692.109995603936,
"NACO3ION": -854567.2252991025,
"NAION": -258552.8207846849,
"CLION": -127757.97582073502
}
},
"gibbsFreeEnergyStandardStateXBased": {
"unit": "J/mol",
"values": {
"H2O": -239003.903975896,
"CO2": -378355.0490189462,
"BENZENE": 140604.9934336966,
"HCL": -87442.33585885077,
"NAHCO3": -840902.8450806803,
"OHION": -146112.94590453355,
"CO3ION": -515667.7416043327,
"HCO3ION": -578579.3952622324,
"HION": 10791.668865256031,
"NACO3ION": -781074.0069076401,
"NAION": -252592.58366227054,
"CLION": -121797.16716088422
}
},
"activityCoefficientsXBased": {
"unit": "",
"values": {
"H2O": 0.9243838734161381,
"CO2": 3.3522070912701194,
"BENZENE": 4.159257161627117,
"HCL": 4.15925716162711,
"NAHCO3": 4.159257161627117,
"OHION": 1.7431270864188753,
"CO3ION": 0.03637016652648902,
"HCO3ION": 0.39392925849523136,
"HION": 3.3808164585153477,
"NACO3ION": 0.5090346708059645,
"NAION": 1.178708373817101,
"CLION": 1.1784518150479442
}
},
"activityCoefficientsMBased": {
"unit": "",
"values": {
"H2O": 0.7535436578842564,
"CO2": 2.732668176269732,
"BENZENE": 3.3905631045586677,
"HCL": 3.390563104558662,
"NAHCO3": 3.3905631045586677,
"OHION": 1.420970658004854,
"CO3ION": 0.029648405938700582,
"HCO3ION": 0.321125133108523,
"HION": 2.755990096809142,
"NACO3ION": 0.41495731249776496,
"NAION": 0.9608651179758185,
"CLION": 0.9606559751738588
}
},
"totalMBGMoles": {
"value": 61.515157125730966,
"unit": "mol"
},
"MBGComposition": {
"unit": "mol/mol",
"values": {
"H(+1)": 0.6197737781017071,
"Na(+1)": 0.03508598439898328,
"O(-2)": 0.30997058198077737,
"Cl(-1)": 0.03508598244284398,
"C(+4)": 4.1845975927089606e-05,
"BENZENE": 4.182709976123431e-05
}
},
"entropy": {
"unit": "cal/mol K",
"values": {
"H2O": 18.61927150093834,
"CO2": 44.55439177545486,
"BENZENE": 49.68223713294719,
"HCL": 35.46867179684341,
"NAHCO3": 49.506592529360205,
"OHION": -7.835324275947642,
"CO3ION": 10.391179658472538,
"HCO3ION": 36.778099756338634,
"HION": 26.31175650485602,
"NACO3ION": 23.14335792325437,
"NAION": 12.68337354194955,
"CLION": 9.25296564346354
}
},
"entropyStandardStateXBased": {
"unit": "cal/mol K",
"values": {
"H2O": 18.1511282477004,
"CO2": 24.39883616170846,
"BENZENE": 34.40187079613679,
"HCL": 15.857367282296764,
"NAHCO3": 10.922679142095149,
"OHION": -12.820184685551794,
"CO3ION": -24.954215268371627,
"HCO3ION": 14.992231663200073,
"HION": -7.981652580747323,
"NACO3ION": -19.06021603208501,
"NAION": 6.820429471554235,
"CLION": 3.384198818457662
}
}
}
}
}
}
{
"result": {
"phases": {
"vapor": {
"totalMolecularMoles": {
"value": 14.202172424670817,
"unit": "mol"
},
"molecularConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.06221167877156798,
"CO2": 0.696612589194416,
"BENZENE": 0.24117572375204308,
"HCL": 8.282042013416935e-09,
"H2CO3": 0.0,
"NACL": 0.0,
"NA2CO3.10H2O": 0.0,
"NA2CO3.1H2O": 0.0,
"NA2CO3.7H2O": 0.0,
"NA2CO3": 0.0,
"NA2O": 0.0,
"NA3HCO32": 0.0,
"NA5H3CO34": 0.0,
"NAHCO3": 0.0,
"NAOH.1H2O": 0.0,
"NAOH": 0.0,
"TRONA": 0.0,
"WEGSCHEIDER": 0.0
}
},
"totalTrueMoles": {
"value": 14.202172424670817,
"unit": "mol"
},
"trueConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.06221167877156798,
"CO2": 0.696612589194416,
"BENZENE": 0.24117572375204308,
"HCL": 8.282042013416935e-09
}
},
"properties": {
"mass": {
"value": 718.884475325838,
"unit": "g"
},
"enthalpy": {
"value": -3806884.6435459694,
"unit": "J"
},
"ph": {
"value": 0.0,
"unit": ""
},
"ionicStrength": {
"value": 0.0,
"unit": ""
},
"volume": {
"value": 247.86468511163403,
"unit": "L"
},
"osmoticPressure": {
"value": 0.0,
"unit": "atm"
},
"heatCapacity": {
"value": 0.2415152457027691,
"unit": "cal/g K"
},
"orp": {
"value": 0.0,
"unit": ""
},
"specificElectricalConductivity": {
"value": 0.0,
"unit": "µmho/cm"
},
"molarElectricalConductivity": {
"value": 0.0,
"unit": "m2/ohm-mol"
},
"absoluteViscosity": {
"value": 0.012366440652502366,
"unit": "cP"
},
"relativeViscosity": {
"value": 0.0,
"unit": "cP"
},
"thermalConductivity": {
"value": 14.575964340152733,
"unit": "cal/hr m °C"
},
"idealStandardLiquidVolume": {
"value": 0.6912330153403138,
"unit": "L"
},
"surfaceTension": {
"value": 0.0,
"unit": "N/m"
},
"interfacialTension": {
"value": 0.0,
"unit": "N/m"
},
"density": {
"value": 2.900310203537324,
"unit": "kg/m3"
},
"volumeStdConditions": {
"value": 224.32703036551902,
"unit": "L"
},
"gibbsFreeEnergy": {
"value": -3754751.8887388613,
"unit": "J"
},
"gibbsFreeEnergyStandardState": {
"value": -3740447.147339126,
"unit": "J"
},
"entropy": {
"value": 788.6168219465585,
"unit": "cal/K"
},
"entropyStandardState": {
"value": 779.1222828112316,
"unit": "cal/K"
}
},
"selfDiffusivities": {
"unit": "m2/s",
"values": {
"H2O": 1.4242539419660113e-05,
"CO2": 9.701040488087044e-06,
"BENZENE": 3.2321821400380015e-06,
"HCL": 9.20876405486835e-06
}
},
"vaporDiffusivityMatrix": {
"type": "rowMajorMatrix",
"speciesNames": [
"H2O",
"CO2",
"BENZENE",
"HCL"
],
"unit": "m2/s",
"data": [
1.4242539419660113e-05,
1.5947634582597602e-05,
9.090354141730192e-06,
1.73118735518477e-05,
1.5947634582597602e-05,
9.701040488087044e-06,
5.485155932862653e-06,
1.068311110428046e-05,
9.090354141730192e-06,
5.485155932862653e-06,
3.2321821400380015e-06,
6.060952736145546e-06,
1.73118735518477e-05,
1.068311110428046e-05,
6.060952736145546e-06,
9.20876405486835e-06
]
},
"partialPressure": {
"unit": "atm",
"values": {
"H2O": 0.09331751815735198,
"CO2": 1.0449188837916241,
"BENZENE": 0.3617635856280646,
"HCL": 1.2423063020125402e-08,
"H2CO3": 0.0,
"NACL": 0.0,
"NA2CO3.10H2O": 0.0,
"NA2CO3.1H2O": 0.0,
"NA2CO3.7H2O": 0.0,
"NA2CO3": 0.0,
"NA2O": 0.0,
"NA3HCO32": 0.0,
"NA5H3CO34": 0.0,
"NAHCO3": 0.0,
"NAOH.1H2O": 0.0,
"NAOH": 0.0,
"TRONA": 0.0,
"WEGSCHEIDER": 0.0
}
},
"gibbsFreeEnergy": {
"unit": "J/mol",
"values": {
"H2O": -239764.18696742016,
"CO2": -399634.43615714944,
"BENZENE": 119944.96068468186,
"HCL": -149450.08593080845
}
},
"gibbsFreeEnergyStandardStateXBased": {
"unit": "J/mol",
"values": {
"H2O": -233351.90735992635,
"CO2": -399741.5987011286,
"BENZENE": 122776.72892666652,
"HCL": -100524.45747929343
}
},
"fugacityCoefficients": {
"unit": "",
"values": {
"H2O": 0.9852821111175118,
"CO2": 0.9959535822374131,
"BENZENE": 0.9634966009085911,
"HCL": 0.9941873536173533
}
},
"fugacities": {
"unit": "atm",
"values": {
"H2O": 0.09194408129432251,
"CO2": 1.0406907054597871,
"BENZENE": 0.34855798508514435,
"HCL": 1.2350852147800078e-08
}
},
"totalMBGMoles": {
"value": 35.75607872964982,
"unit": "mol"
},
"MBGComposition": {
"unit": "mol/mol",
"values": {
"H(+1)": 0.049420466614023974,
"Na(+1)": 0.0,
"O(-2)": 0.5780937377082296,
"Cl(-1)": 3.289594185991633e-09,
"C(+4)": 0.2766917530230073,
"BENZENE": 0.09579403936514483
}
},
"entropy": {
"unit": "cal/mol K",
"values": {
"H2O": 50.40657775680302,
"CO2": 51.6920253779972,
"BENZENE": 67.92850641031691,
"HCL": 80.77220734485309
}
},
"entropyStandardStateXBased": {
"unit": "cal/mol K",
"values": {
"H2O": 45.742734461964574,
"CO2": 51.80255121376831,
"BENZENE": 66.04035986965755,
"HCL": 44.62224480594159
}
}
}
}
}
}
{
"result": {
"phases": {
"liquid2": {
"totalMolecularMoles": {
"value": 11.729939801929907,
"unit": "mol"
},
"molecularConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.004579587008357855,
"CO2": 0.008867371447473326,
"BENZENE": 0.986553041313207,
"HCL": 2.3096692703897768e-10,
"H2CO3": 0.0,
"NACL": 0.0,
"NA2CO3.10H2O": 0.0,
"NA2CO3.1H2O": 0.0,
"NA2CO3.7H2O": 0.0,
"NA2CO3": 0.0,
"NA2O": 0.0,
"NA3HCO32": 0.0,
"NA5H3CO34": 0.0,
"NAHCO3": 0.0,
"NAOH.1H2O": 0.0,
"NAOH": 0.0,
"TRONA": 0.0,
"WEGSCHEIDER": 0.0
}
},
"totalTrueMoles": {
"value": 11.729939801929907,
"unit": "mol"
},
"trueConcentration": {
"unit": "mol/mol",
"values": {
"H2O": 0.004579587008357855,
"CO2": 0.008867371447473326,
"BENZENE": 0.986553041313207,
"HCL": 2.3096692703897768e-10,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"properties": {
"mass": {
"value": 909.5016870031311,
"unit": "g"
},
"enthalpy": {
"value": 553663.5010248525,
"unit": "J"
},
"ph": {
"value": 0.0,
"unit": ""
},
"ionicStrength": {
"value": 0.0,
"unit": ""
},
"volume": {
"value": 1.073309739643026,
"unit": "L"
},
"osmoticPressure": {
"value": 0.0,
"unit": "atm"
},
"heatCapacity": {
"value": 0.4050817317973504,
"unit": "cal/g K"
},
"orp": {
"value": 0.0,
"unit": ""
},
"specificElectricalConductivity": {
"value": 0.0,
"unit": "µmho/cm"
},
"molarElectricalConductivity": {
"value": 0.0,
"unit": "m2/ohm-mol"
},
"absoluteViscosity": {
"value": 0.0,
"unit": "cP"
},
"relativeViscosity": {
"value": 0.0,
"unit": "cP"
},
"thermalConductivity": {
"value": 0.0,
"unit": "cal/hr m °C"
},
"idealStandardLiquidVolume": {
"value": 1.0403738849073891,
"unit": "L"
},
"surfaceTension": {
"value": 0.0,
"unit": "N/m"
},
"interfacialTension": {
"value": 0.0,
"unit": "N/m"
},
"density": {
"value": 847.3804470512155,
"unit": "kg/m3"
},
"ionicStrengthMBased": {
"value": 0.0,
"unit": "mol/kg"
},
"ionicStrengthXBased": {
"value": 0.0,
"unit": "mol/mol"
},
"volumeStdConditions": {
"value": 1.0308257906614442,
"unit": "L"
},
"gibbsFreeEnergy": {
"value": 1333580.818159867,
"unit": "J"
},
"gibbsFreeEnergyStandardState": {
"value": 1366683.9390451827,
"unit": "J"
},
"entropy": {
"value": 517.8792962261166,
"unit": "cal/K"
},
"entropyStandardState": {
"value": 772.0781645553415,
"unit": "cal/K"
}
},
"gibbsFreeEnergy": {
"unit": "J/mol",
"values": {
"H2O": -239764.1869673227,
"CO2": -399634.4361571407,
"BENZENE": 119944.9606846787,
"HCL": -149450.08593080062,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"gibbsFreeEnergyStandardStateXBased": {
"unit": "J/mol",
"values": {
"H2O": -233351.90735992635,
"CO2": -399741.5987011286,
"BENZENE": 122776.72892666652,
"HCL": -100524.45747929343,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"activityCoefficientsXBased": {
"unit": "",
"values": {
"H2O": 164.5440203497236,
"CO2": 0.04098456846403843,
"BENZENE": 0.00046388126020171296,
"HCL": 0.41073570603173115,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"fugacityCoefficients": {
"unit": "",
"values": {
"H2O": 13.38462487699624,
"CO2": 78.24120233959098,
"BENZENE": 0.23553927698318566,
"HCL": 35.64969901729978,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"totalMBGMoles": {
"value": 12.0454038310511,
"unit": "mol"
},
"MBGComposition": {
"unit": "mol/mol",
"values": {
"H(+1)": 0.008919299349993557,
"Na(+1)": 0.0,
"O(-2)": 0.021729927045818765,
"Cl(-1)": 2.249180009573439e-10,
"C(+4)": 0.008635138741640494,
"BENZENE": 0.9607156346376292
}
},
"entropy": {
"unit": "cal/mol K",
"values": {
"H2O": 38.47298225737177,
"CO2": 44.45974865084281,
"BENZENE": 44.173780718119815,
"HCL": 71.54322687638341,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
},
"entropyStandardStateXBased": {
"unit": "cal/mol K",
"values": {
"H2O": 45.742734461964574,
"CO2": 51.80255121376831,
"BENZENE": 66.04035986965755,
"HCL": 44.62224480594159,
"NAHCO3": 0.0,
"OHION": 0.0,
"CO3ION": 0.0,
"HCO3ION": 0.0,
"HION": 0.0,
"NACO3ION": 0.0,
"NAION": 0.0,
"CLION": 0.0
}
}
}
}
}
}
{
"result": {
"phases": {
"solid": {
"totalMolecularMoles": {
"value": 2.841680156785605,
"unit&qu