Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
4c8151a8
Commit
4c8151a8
authored
6 years ago
by
Holger Class
Browse files
Options
Downloads
Patches
Plain Diff
A new possibility to enter diffusion coefficients user-specific if desired
parent
1ad94594
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1232
A new possibility to enter diffusion coefficients user-specific if desired
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/binarycoefficients/brine_co2.hh
+15
-9
15 additions, 9 deletions
dumux/material/binarycoefficients/brine_co2.hh
with
15 additions
and
9 deletions
dumux/material/binarycoefficients/brine_co2.hh
+
15
−
9
View file @
4c8151a8
...
...
@@ -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"
);
}
/*!
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment