set pH flash
This function calculates the equilibrium solution at a specified pH by varying inflows of acid and/or base titrant(s).
set pH
POST
https://api.olisystems.com/engine/flash/{dbs_file_id}/setph
fix the pH of the aqueous phase by varying acid/base amount
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 | |
targetPH | value | specified target pH of the solution |
pHAcidTitrant | string | inflow species name for pH acid titrant |
pHBaseTitrant | string | inflow species name for pH base titrant |
One or both of params.pHAcidTitrant and params.pHBaseTitrant need to be specified. If only one titrant is to be specified, it is the same to specify it as params.pHAcidTitrant or params.pHBaseTitrant regardless of the chemical nature of the solvent.
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 amounts of added titrants and can be conveniently retrieved from the data.result.addedTitrants array
data.result.addedTitrants [ { } ] | type | description |
titrantType | string | titrant type, i.e. "Acid" or "Base". This field will be missing if only one titrant is specified. |
name | string | inflow name of the titrant |
value | number | added titrant amount |
unit | string | unit of added titrant 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" |
"/params/targetPH/value" |
Last updated