Autoclave
This calculation is currently not supported
The oliengine.autoclaveFlash function mimics the autoclave application, which is a high pressure, high temperature hydrometallurgy unit with carefully controlled conditions.
For this example purposes, let's assume the chemistry model file contains H2O, NACL, CO2, and CH4 as inflows in the MSE Thermodynamic framework
JSON input (sample)
Most flash calls for OLI API follows a very similar input to describe the calculation with minor variation to specify calculation specific information
params
type
description
ambientTemperature
valueObject
temperature at ambient condition with unit
finalTemperature
valueObject
temperature at final condition with unit
finalPressure
valueObject
pressure at final condition with unit
vesselVolume
valueObject
vessel volume with unit
computeAmbientCondition
boolean
flash calculation condition
A valueObject type is defined as JSON object of the type {"value": number, "unit": "string" }
params.temperature.unit: °C, K, °F, R
params.pressure.unit: atm, bar, barg, mbar, Pa, kPa, MPa, mmHg, Torr, inHg, psia, psig, inH2O, kg/cm2
params.computeAmbientCondition:
true: compute flash at ambient condition;
false: compute flash at final condition
Gas specification
params.gasSpecifications
type
description
targetGases
[string]
list of any number of gas species names as targeted gases
specifiedTypePartialPressure
boolean
type of targeted gas composition
unit
string
unit of targeted gas composition
specifiedGasValues
object
specified gas composition by {gas_name: amount}
params.gasSpecifications.specifiedTypePartialPressure:
true: targeted gas composition specified by partial pressure. params.gasSpecifications.unit from atm, bar, barg, mbar, Pa, kPa, MPa, mmHg, Torr, inHg, psia, psig, inH2O, kg/cm2
false: targeted gas composition specified by mole fraction(s) in aqueous phase. params.gasSpecifications.unit from mol/mol, mole %, ppm (mole)
params.gasSpecifications.specifiedGasValues: The number of specified gas should be the number of gasSpecifications.targetGases -1
params.gasSpecifications.targetGases and the keys of params.gasSpecifications.specifiedGasValues are the inflow names of gas species, which can be retrieved from oliengine.getChemistryInfo call under result.inflows.
Optional inputs
Some optional inputs can be specified in JSON input, see Optional Inputs.
JSON output (example)
This represents the stream output JSON, which is common to all OLI's flash calculation results. Here a condensed version of the output is shown with many major parts removed. A better description of the stream output is given here: Stream output JSON
result.calculatedVariable [{}]
type
description
type
string
type of calculated variable
name
string
name of calculated variable
value
number
value of calculated variable
unit
string
unit of calculated variable
Last updated