Inflows input
This page explains the params.inflows object that is required as an input for most flash calculations.
JSON input (example)
params.inflows | type | description |
unit | string | unit for inflows |
values | object | the amount of each inflow specified as "inflow_name": number. Species with zero amount need not be specified. |
totalAmount | optional total stream amount |
params.inflows.totalAmount is optional. However, when it's specified and conflicts with the summation of inflows, the totalAmount takes priority, and params.inflows.values are normalized proportionally.
Units in batch systems
unit types | units |
moles | mol, nmol, kgmol, nanomol, lbmol, micromol, µmol, mmol, (mol/100) |
mole fraction |
|
mass | mg, kg, nanog, lb, µg, microg, ng, g, tonne, (g/100) |
mass fraction |
|
params.inflows.unit can be specified from any units as listed in the above table.
Units in flowing systems
Unit types of moles and mass can be specified in flowing system by dividing a time unit, i.e. "mol/hr". Available time units are "s", "min", "hr", "day", "yr".
Unit consistency between inflows and total amount
Unit for params.inflows.totalAmount needs to be consistent with inflows as explained below:
params.inflows.unit | params.inflows.totalAmount.unit |
moles or mass in batch system | Optional. If specified, it can be any moles or mass units in batch system. And params.inflows will be scaled to match the total amount. |
moles or mass in flowing system | Optional. If specified, it can be any moles or mass units in flowing system. And params.inflows will be scaled to match the total amount. |
mole fraction or mass fraction | Optional. If specified, it can be any moles or mass units in batch or flowing system. If not specified, a total amount of 100 mole in batch system will be assumed. |
Normalize option (optional)
When specified from mole fraction units, inflow values will be normalized if they don't add up to 100%. Different normalization options could be specified as below:
params.inflows.normalize.option | description |
---|---|
"prorate" | All specified inflow values will be prorated |
"makeup" | One inflow component will be added or removed for normalization. params.inflows.normalize.option.makeupComponent specifies the inflow name. |
"prorate" option is used by default if params.inflows.normalize object is not specified.
Survey Calculation
Survey calculation is supported for the variables below. Please refer to Survey calculation for explained input schema.
supported params.surveyInputs[{}].field |
"/params/inflows/values/<InflowName>" |
"/params/inflows/totalAmount/value" |
When specific inflow value(s) is changed in the survey calculation and the total amount is given, the total amount will not be modified in survey input unless it's specified. In other words, the survey calculation will only overwrite the specified value field(s) to construct a series of JSON inputs to perform single-point calculations.
Last updated