5.1.1.4.4. gemini_model.corrosion.correlation.norsok_model

NORSOK M-506 CO2 corrosion model.

Implements the NORSOK standard M-506 “CO2 corrosion rate model” and spreadsheet-based software model is available online (https://www.standard.no), including CO2 fugacity, shear stress estimation and temperature/pH adjustments.

Classes

NORSOK()

CO2 corrosion rate using the NORSOK M-506 correlation.

class gemini_model.corrosion.correlation.norsok_model.NORSOK[source]

Bases: Model

CO2 corrosion rate using the NORSOK M-506 correlation.

Initialize NORSOK corrosion model.

calculate_corrosion_rate(u)[source]

Calculate the corrosion rate based on various parameters.

Parameters: u (dict): Dictionary containing the required parameters for corrosion rate calculation.

Returns: float: Corrosion rate in mm/year

calculate_output(u, x)[source]

Calculate output based on input u and state x.

get_output()[source]

Get output of the model.

initialize_state(x)[source]

Generate an initial state based on user parameters.

update_parameters(parameters)[source]

Update model parameters.

Parameters:

parameters (dict) – Parameters dict as defined by the model.

update_state(u, x)[source]

Update the state based on input u and state x.