Skip to content
Snippets Groups Projects
Commit 4c8151a8 authored by Holger Class's avatar Holger Class
Browse files

A new possibility to enter diffusion coefficients user-specific if desired

parent 1ad94594
No related branches found
No related tags found
1 merge request!1232A new possibility to enter diffusion coefficients user-specific if desired
......@@ -53,14 +53,17 @@ public:
*/
static Scalar gasDiffCoeff(Scalar temperature, Scalar pressure)
{
//Diffusion coefficient of water in the CO2 phase
Scalar const PI=3.141593;
Scalar const k = 1.3806504e-23; // Boltzmann constant
Scalar const c = 4; // slip parameter, can vary between 4 (slip condition) and 6 (stick condition)
Scalar const R_h = 1.72e-10; // hydrodynamic radius of the solute
Scalar mu = CO2::gasViscosity(temperature, pressure); // CO2 viscosity
Scalar D = k / (c * PI * R_h) * (temperature / mu);
return D;
if(!hasParam("BinaryCoefficients.GasDiffCoeff")) //in case one might set that user-specific as e.g. in dumux-lecture/mm/convectivemixing
{
//Diffusion coefficient of water in the CO2 phase
Scalar const PI=3.141593;
Scalar const k = 1.3806504e-23; // Boltzmann constant
Scalar const c = 4; // slip parameter, can vary between 4 (slip condition) and 6 (stick condition)
Scalar const R_h = 1.72e-10; // hydrodynamic radius of the solute
Scalar mu = CO2::gasViscosity(temperature, pressure); // CO2 viscosity
Scalar D = k / (c * PI * R_h) * (temperature / mu);
return D;
} else return getParam<Scalar>("BinaryCoefficients.GasDiffCoeff");
}
/*!
......@@ -72,7 +75,10 @@ public:
static Scalar liquidDiffCoeff(Scalar temperature, Scalar pressure)
{
//Diffusion coefficient of CO2 in the brine phase
return 2e-9;
if(!hasParam("BinaryCoefficients.LiquidDiffCoeff")) //in case one might set that user-specific as e.g. in dumux-lecture/mm/convectivemixing
{
return 2e-9;
} else return getParam<Scalar>("BinaryCoefficients.LiquidDiffCoeff");
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment