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
57f44044
Commit
57f44044
authored
7 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
Implement DiffusivityConstantTortuosity that reads tortuosity from command line
parent
ee53fede
No related branches found
No related tags found
1 merge request
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh
+73
-0
73 additions, 0 deletions
.../fluidmatrixinteractions/diffusivityconstanttortuosity.hh
with
73 additions
and
0 deletions
dumux/material/fluidmatrixinteractions/diffusivityconstanttortuosity.hh
0 → 100644
+
73
−
0
View file @
57f44044
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief Relation for the saturation-dependent effective diffusion coefficient
*/
#ifndef DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
#define DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
#include
<dumux/common/parameters.hh>
namespace
Dumux
{
/*!
* \ingroup fluidmatrixinteractionslaws
*
* \brief Relation for the saturation-dependent effective diffusion coefficient
*
* The material law is:
* \f[
* D_\text{eff,pm} = \phi * S_w * \tau * D
* \f]
*
* with a constant tau.
*
* The default value is 0.5, empirically obtained in Carman 1937:
* <i>Fluid flow through granular beds</i> \cite carman1937
* Additionally, Bear 1972 \cite bear1972 mentions values 0.4 and in the
* range of 0.56 to 0.8.
*/
template
<
class
Scalar
>
class
DiffusivityConstantTortuosity
{
public:
/*!
* \brief Returns the effective diffusion coefficient \f$\mathrm{[m^2/s]}\f$ based
* on a constant tortuosity value
*
* \param porosity The porosity
* \param saturation The saturation of the wetting phase
* \param diffCoeff The diffusion coefficient of the phase in \f$\mathrm{[m^2/s]}\f$
*/
static
Scalar
effectiveDiffusivity
(
const
Scalar
porosity
,
const
Scalar
saturation
,
const
Scalar
diffCoeff
)
{
static
const
Scalar
tau
=
getParam
<
Scalar
>
(
"SpatialParams.Tortuosity"
,
0.5
);
return
porosity
*
saturation
*
tau
*
diffCoeff
;
}
};
}
// end namespace Dumux
#endif // DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
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