Inflows input

This page explains the params.inflows object that is required as an input for most flash calculations.

JSON input (example)

    "params": {
        ...<snip>...
        "inflows": {
            "unit": "mol",
            "values": {
                "H2O": 50.0,
                "BENZENE": 10.0,
                "CH4": 20.0,
                "NAOH": 35.0
            },
            "totalAmount": {
                "value": 3402.68,
                "unit": "g"
            }
        }
        ...<snip>...
    }

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

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:

Normalize option (optional)

    "params": {
        ...<snip>...
        "inflows": {
            "unit": "mole %",
            "values": {
                "H2O": 50.0,
                "BENZENE": 10.0,
                "CH4": 20.0,
                "NAOH": 35.0
            },
            "normalize": {
                "option": "prorate"
            }
        }
        ...<snip>...
    }    

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:

"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.

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