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
Authorization
string
Bearer {access_token}
Content-Type
string
application/json
Request payload
params
type
description
temperature
pressure
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
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
pipeFlowVelocity
Additional parameters if flowType is rotatingDisk
params.corrosionParameters
type
description
diskDiameter
diskRotationSpeed
Additional parameters if flowType is rotatingCylinder
params.corrosionParameters
type
description
rotorDiameter
rotorRotation
Additional parameters if flowType is definedShearStress
params.corrosionParameters
type
description
shearStress
Additional parameters if flowType is approximateMultiPhaseFlow
params.corrosionParameters
type
description
pipeDiameter
liquidFlowInPipe
gasFlowInPipe
pipeRoughness
viscAbs2ndLiq
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