ogstools.materiallib.core.components module#
- class ogstools.materiallib.core.components.Components[source]#
Bases:
object
- 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