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, data_dir=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₂.
Binary diffusion coefficients depend on a pair of species rather than a single material, which is why they are treated differently from other material properties.
- Return type:
- 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.