Precipitation point flash
This function calculates the equilibrium solution at the precipitation point of a specified solid species by varying one inflow species.
precipitation point
POST
https://api.olisystems.com/engine/flash/{dbs_file_id}/precipitation-point
determine the minimum amount of an inflow species required to precipitate a solid
Headers
Authorization
string
Bearer {access_token}
Content-Type
string
application/json
{
"code": 200,
"data": {
"file_id": "dee854a6-59db-487d-ad08-a20dee691133",
"jobId": "f6b3375e-cd0f-4ace-a5ee-71e047b76754",
"resultsLink": "https://devapi.olisystems.com/result/flash/f6b3375e-cd0f-4ace-a5ee-71e047b76754?context=engine",
"status": "IN PROGRESS"
},
"message": "Process execution started Successfully",
"status": "SUCCESS"
}
Request payload
{
"params": {
"temperature": {
"value": 30.0,
"unit": "°C"
},
"pressure": {
"value": 1.5,
"unit": "atm"
},
"solidToPrecipitate": "NACLPPT",
"inflowToAdjust": "NACL",
"inflows": {
"unit": "mol",
"values": {
"H2O": 50.0,
"CO2": 10.0,
"NACL": 0.0,
"BENZENE": 10.0
}
}
}
}
params
type
description
solidToPrecipitate
string
specified solid species at precipitation point
inflowToAdjust
string
inflow species whose amount is to be adjusted to achieve precipitation point condition
Response (status = PROCESSED)
{
"code": 200,
"data": {
"result": {
"calculatedVariables": [
{
"name": "NACL",
"type": "inflow",
"unit": "mol",
"value": 5.531398835682553
}
],
...<snip>...
}
},
"message": "Results returned successfully",
"status": "PROCESSED"
}
The output of this calculation is the stream output which is common result output for all OLI's flash calculations or an error. In addition to this output the result also contains the amount of the added inflow (params.inflowToAdjust) can be conveniently retrieved from the data.result.calculatedVariables array
Survey Calculation
Survey calculation is supported for the variables below. Please refer to Survey calculation for explained input schema.
supported params.surveyInputs[{}].field
"/params/temperature/value"
"/params/pressure/value"
Last updated
Was this helpful?