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
Name | Type | Description |
---|---|---|
Authorization | string | Bearer {access_token} |
Content-Type | string | application/json |
Request payload
params | type | description |
temperature | specified or initial guess temperature with unit | |
pressure | specified or initial guess pressure with unit | |
solidToPrecipitate | string | specified solid species at precipitation point |
inflowToAdjust | string | inflow species whose amount is to be adjusted to achieve precipitation point condition |
params.solidToPrecipitate and params.inflowToAdjust are species and inflow names retrieved from the chemistry information call, under result.species(trueName) and result.inflows(baseName) respectively.
in addition to the inputs shown above some optional properties may also be specified. They can be viewed here
Response (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
data.result.calculatedVariables | type | description |
type | string | type of calculated variable, i.e. inflow amount for "inflow" |
name | string | name of adjusted inflow species |
value | number | the final amount of adjusted inflow |
unit | string | unit of inflow amount |
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