ogstools.materiallib.core.components module#

class ogstools.materiallib.core.components.Components[source]#

Bases: object

__init__(phase_type, gas_component, liquid_component, process, Diffusion_coefficient=None)[source]#
get_binary_diffusion_coefficient(phase)[source]#

Retrieves the binary diffusion coefficient D [m²/s] for a specific component pair in either the liquid or gas phase.

In the liquid phase, this typically describes a gas (e.g. CO2) diffusing in a solvent like water. In the gas phase, it typically describes a vapor (e.g. H2O) diffusing in a carrier gas like CO₂.

Parameters:
phase (str): Either “liquid” or “gas”. Indicates the phase in which diffusion

occurs.

Returns:

float: Binary diffusion coefficient in [m²/s].

Raises:

ValueError: If the component pair is not found.

Return type:

float