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
                }
            }
        }
    }
  }
}