Corrosion rates
This function calculates the corrosion rates of a given metal contact surface under a specified solution condition.
This calculation is currently only supported for the AQ thermodynamic framework
corrosion rates
POST
https://api.olisystems.com/engine/flash/{dbs_file_id}/corrosion-rates
calculate the corrosion rate
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 | |
calculationType | string | single point flash calculation type of solution, e.g. isothermal |
params.calculationType currently only supports the "isothermal" type.
Corrosion parameters
params.corrosionParameters | type | description |
contactSurface | string | contact surface metal name, which can be retrieved from Corrosion contact surfaces |
flowType | string | flow configuration |
Options for flowType
params.corrosionParameters.flowType | description |
static | mimics static flow |
pipeFlow | mimics pipe flow |
rotatingDisk | several parallel disks that are rotating |
rotatingCylinder | several parallel cylinders that are rotating |
completeAgitation | liquid phase is completely agitated and no mass transfer limitations apply |
definedShearStress | define the stress of applied force over material |
approximateMultiPhaseFlow | mimics an approximate multi-phase flow |
Additional corrosion parameters may be required for different flow types, which are explained as below
Additional parameters if flowType is pipeFlow
params.corrosionParameters | type | description |
pipeDiameter | pipe diameter and unit | |
pipeFlowVelocity | pipe flow velocity and unit |
Additional parameters if flowType is rotatingDisk
params.corrosionParameters | type | description |
diskDiameter | disk diameter and unit | |
diskRotationSpeed | disk rotation speed and unit |
Additional parameters if flowType is rotatingCylinder
params.corrosionParameters | type | description |
rotorDiameter | rotor diameter and unit | |
rotorRotation | rotor rotation speed and unit |
Additional parameters if flowType is definedShearStress
params.corrosionParameters | type | description |
shearStress | shear stress and unit |
Additional parameters if flowType is approximateMultiPhaseFlow
params.corrosionParameters | type | description |
pipeDiameter | pipe diameter and unit | |
liquidFlowInPipe | liquid flow in pipe and unit | |
gasFlowInPipe | gas flow in pipe and unit | |
pipeRoughness | pipe roughness and unit | |
viscAbs2ndLiq | absolute viscosity of 2nd liquid and unit | |
waterCutAtPointOfDispersionInversion | number | water cut at point of dispersion inversion |
maxRelViscosityOfDispersionAtInversion | number | max relative viscosity of dispersion at inversion |
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 the corrosion output information can be conveniently retrieved from the data.result.corrosionOutputs array
data.result.corrosionOutputs | type | description |
corrosionPotential | corrosion potential | |
repassivationPotential | repassivation potential | |
corrosionRateGPerMsqDay | corrosion rate in gram per cubic meter day | |
corrosionRateMmPerYear | corrosion rate in mm per year | |
corrosionRateMilPerYear | corrosion rate in mil per year | |
corrosionCurrentDensity | corrosion current density | |
maximumPitCurrentDensity | maximum pit current density |
All output units are fixed to what is shown in this example
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