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

Phase properties

The following properties are available under the properties object of each phase. Sample output is available in example(s) above

result.phases.phase_name.properties

availability

phase(s)

mass

always

all

enthalpy

always

all

ph

always

liquid1, liquid2

ionicStrength

always

liquid1, liquid2

volume

always

all

osmoticPressure

always

liquid1, liquid2

heatCapacity

all

orp

always

liquid1,

liquid2

specificElectricalConductivity

liquid1,

liquid2

molarElectricalConductivity

liquid1,

liquid2

absoluteViscosity

liquid1,

liquid2, vapor

relativeViscosity

liquid1, liquid2, vapor

thermalConductivity

liquid1, liquid2, vapor

idealStandardLiquidVolume

always

liquid1, liquid2

surfaceTension

liquid1, liquid2

interfacialTension

liquid1, liquid2

density

always

all

hardness

liquid1

ionicStrengthXBased

liquid1, liquid2

ionicStrengthMBased

liquid1, liquid2

volumeStdConditions

liquid1, liquid2, vapor

gibbsFreeEnergy

all

gibbsFreeEnergyStandardState

all

entropy

all

Additional species properties

Additional species properties present in each result.phase.phase_name when such property calculation is turned on from input

result.phases.phase_name

phases(s)

mobilities

liquid1

selfDiffusivities

liquid1, liquid2, vapor

gibbsFreeEnergy

all

gibbsFreeEnergyStandardStateXBased

all

activityCoefficientsXBased

liquid1, liquid2

activityCoefficientsMBased

liquid1, liquid2

totalMBGMoles

all

MBGComposition

all

entropy

all

entropyStandardStateXBased

all

vaporDiffusivityMatrix

vapor

partialPressure

vapor

fugacityCoefficients

liquid2, vapor

fugacities

vapor

Additional properties

Optional properties present in result.additionalProperties when they do not belong to any particular phase

{
    "result": {
        "additionalProperites": {
            "prescalingTendencies": {
                "unit": "",
                "values": {
                    "NA2CO3": 3.0823983392482883e-10,
                    "NACL": 7.04645888444708,
                    "NAHCO3": 0.00046319422279570457,
                    "NAOH": 5.727646460859379e-16,
                    "TRONA": 5.433452081252768e-13,
                    "WEGSCHEIDER": 1.2439714622633147e-19,
                    "NA2CO3.10H2O": 2.42323772574986e-13,
                    "NA2CO3.1H2O": 4.724326060804564e-10,
                    "NA2CO3.7H2O": 5.622390596860186e-12,
                    "NAOH.1H2O": 1.6334354600819453e-14
                }
            },
            "prescalingIndex": {
                "unit": "",
                "values": {
                    "NA2CO3": -9.511111237986588,
                    "NACL": 0.8479709221966109,
                    "NAHCO3": -3.3342368659982218,
                    "NAOH": -15.24202379671215,
                    "TRONA": -12.264924158720135,
                    "WEGSCHEIDER": -18.905189582606397,
                    "NA2CO3.10H2O": -12.615603978385396,
                    "NA2CO3.1H2O": -9.325660136138662,
                    "NA2CO3.7H2O": -11.250078986517886,
                    "NAOH.1H2O": -13.78689802059106
                }
            },
            "scalingIndex": {
                "unit": "",
                "values": {
                    "NA2CO3": -9.946251018459519,
                    "NACL": -1.9554246636221152e-11,
                    "NAHCO3": -3.4886794715296867,
                    "NAOH": -15.386294219715131,
                    "TRONA": -12.581673108800006,
                    "WEGSCHEIDER": -19.80365717967372,
                    "NA2CO3.10H2O": -11.686576579235705,
                    "NA2CO3.1H2O": -9.624383198649332,
                    "NA2CO3.7H2O": -10.730301741254978,
                    "NAOH.1H2O": -13.79476196292895
                }
            },
            "scalingTendencies": {
                "unit": "",
                "values": {
                    "NA2CO3": 1.1317460347225315e-10,
                    "NACL": 0.9999999999549747,
                    "NAHCO3": 0.0003245790826401726,
                    "NAOH": 4.10871275505647e-16,
                    "TRONA": 2.6201544428167713e-13,
                    "WEGSCHEIDER": 1.571602895671782e-20,
                    "NA2CO3.10H2O": 2.057895989322877e-12,
                    "NA2CO3.1H2O": 2.3747440125028744e-10,
                    "NA2CO3.7H2O": 1.8607938359436187e-11,
                    "NAOH.1H2O": 1.6041243713317784e-14
                }
            },
            "vaporToInflowMoleFraction": {
                "value": 28.404344849341634,
                "unit": "mole %"
            },
            "kValuesXBased": {
                "unit": "",
                "values": {
                    "KH2OVAP": 8.195673362128641,
                    "KCO2VAP": 0.00034921556450656036,
                    "KBENZENEVAP": 0.0013129622262103029,
                    "KHCLVAP": 0.007680956966516748,
                    "KCO2AQ": 9.712763616665181e-09,
                    "KHCLAQ": 6437.726437542827,
                    "KH2O": 1.7410660292199987e-17,
                    "KHCO3ION": 1.2208106353427793e-12,
                    "KNA2CO3.10H2O": 3.496774736505818e-05,
                    "KNA2CO3.1H2O": 3.868107224026778e-06,
                    "KNA2CO3.7H2O": 9.037900604837083e-06,
                    "KNA2CO3PPT": 1.0771046605242481e-05,
                    "KNACLPPT": 0.011832889555603935,
                    "KNACO3ION": 0.008488007914963163,
                    "KNAHCO3AQ": 0.02673682534381605,
                    "KNAHCO3PPT": 0.0001587786173616354,
                    "KNAOH.1H2O": 11.940983026389624,
                    "KNAOHPPT": 618.6769257173816,
                    "KTRONAPPT": 1.3614740802529445e-10,
                    "KWEGSCHEIDERPPT": 1.0616997108576684e-17
                }
            },
            "kValuesMBased": {
                "unit": "",
                "values": {
                    "KH2OVAP": 8.195673362128641,
                    "KCO2VAP": 0.01938434492530035,
                    "KBENZENEVAP": 0.07288023574411047,
                    "KHCLVAP": 0.4263564810054514,
                    "KCO2AQ": 5.391385128820872e-07,
                    "KHCLAQ": 357346.9297577968,
                    "KH2O": 5.3645131731839625e-14,
                    "KHCO3ION": 6.776506218271648e-11,
                    "KNA2CO3.10H2O": 5.980538177919528,
                    "KNA2CO3.1H2O": 0.6615628592848587,
                    "KNA2CO3.7H2O": 1.5457532637484566,
                    "KNA2CO3PPT": 1.842173439607153,
                    "KNACLPPT": 36.45909507883878,
                    "KNACO3ION": 0.47115446696888114,
                    "KNAHCO3AQ": 1.4841143905036516,
                    "KNAHCO3PPT": 0.4892232518246443,
                    "KNAOH.1H2O": 36792.148988474095,
                    "KNAOHPPT": 1906246.209078427,
                    "KTRONAPPT": 0.07174589592459862,
                    "KWEGSCHEIDERPPT": 0.05311528707354195
                }
            }
        }
    }
}

Properties in result.additionalProperties: prescalingTendencies, prescalingIndex, scalingIndex, scalingTendencies, vaporToInflowMoleFraction, kValuesXBased, kValuesMBased

Phase summary

Provides a quick snapshot of possible phases (liquid1, vapor, liquid2, and solid) present in the system, this array has four JSON objects corresponding to each phase in the system. The table below describes the object in this array.

result.phase.phaseSummary[0->3]

type

description

phase

string

name of phase (same as phase_name above)

found

bool

true => phase present, false => phase not present

Kinetic outputs

Kinetic calculation outputs will be shown if kinetic calculations are specified. Detailed kinetic outputs can be found here.

Last updated