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
9f0220cf
Commit
9f0220cf
authored
5 years ago
by
Dennis Gläser
Committed by
Ned Coltman
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[mpfa] remove now obsolete tensor lambda factory
parent
877a753a
No related branches found
No related tags found
1 merge request
!1684
Improve effective laws
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/cellcentered/mpfa/CMakeLists.txt
+0
-1
0 additions, 1 deletion
dumux/discretization/cellcentered/mpfa/CMakeLists.txt
dumux/discretization/cellcentered/mpfa/tensorlambdafactory.hh
+0
-88
0 additions, 88 deletions
...x/discretization/cellcentered/mpfa/tensorlambdafactory.hh
with
0 additions
and
89 deletions
dumux/discretization/cellcentered/mpfa/CMakeLists.txt
+
0
−
1
View file @
9f0220cf
...
...
@@ -21,5 +21,4 @@ localfacedata.hh
methods.hh
scvgradients.hh
subcontrolvolumeface.hh
tensorlambdafactory.hh
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dumux/discretization/cellcentered/mpfa
)
This diff is collapsed.
Click to expand it.
dumux/discretization/cellcentered/mpfa/tensorlambdafactory.hh
deleted
100644 → 0
+
0
−
88
View file @
877a753a
// -*- 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 3 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
* \ingroup CCMpfaDiscretization
* \brief Helper class to be used to obtain lambda functions for the tensors
* involved in the laws that describe the different kind of fluxes that
* occur in DuMuX models (i.e. advective, diffusive and heat conduction fluxes).
* The local systems appearing in Mpfa methods have to be solved subject to
* the different tensors. This class returns lambda expressions to be used in the
* local systems. The specialization for other discretization methods allows
* compatibility with the TPFA scheme, which could be used for one or more of the tensors.
*/
#ifndef DUMUX_DISCRETIZATION_MPFA_TENSOR_LAMBDA_FACTORY_HH
#define DUMUX_DISCRETIZATION_MPFA_TENSOR_LAMBDA_FACTORY_HH
#include
<dumux/discretization/method.hh>
#include
<dumux/discretization/cellcentered/mpfa/tensorlambdafactory.hh>
#include
<dumux/common/deprecated.hh>
// effective thermal conductivity interface
namespace
Dumux
{
/*!
* \ingroup CCMpfaDiscretization
* \brief Helper class to be used to obtain lambda functions for the tensors
* involved in the laws that describe the different kind of fluxes that
* occur in DuMuX models (i.e. advective, diffusive and heat conduction fluxes).
* The local systems appearing in Mpfa methods have to be solved subject to
* the different tensors. This class returns lambda expressions to be used in the
* local systems. The specialization for discretization methods other than mpfa allows
* compatibility with the TPFA scheme, which could be used for one or more of the tensors.
* The interfaces of the lambdas are chosen such that all involved tensors can be extracted
* with the given arguments.
*/
template
<
DiscretizationMethod
discMethod
>
class
TensorLambdaFactory
;
//! Specialization for mpfa schemes
template
<
>
class
TensorLambdaFactory
<
DiscretizationMethod
::
ccmpfa
>
{
public:
//! return void lambda here
static
auto
getAdvectionLambda
()
{
return
[]
(
const
auto
&
volVars
)
{
return
volVars
.
permeability
();
};
}
//! return void lambda here
template
<
class
EffDiffModel
>
static
auto
getDiffusionLambda
(
unsigned
int
phaseIdx
,
unsigned
int
compIdx
)
{
return
[
phaseIdx
,
compIdx
]
(
const
auto
&
volVars
)
{
return
Deprecated
::
template
effectiveDiffusionCoefficient
<
EffDiffModel
>(
volVars
,
phaseIdx
,
phaseIdx
,
compIdx
);
};
}
//! return void lambda here
template
<
class
ThermalConductivityModel
>
static
auto
getHeatConductionLambda
()
{
return
[]
(
const
auto
&
volVars
)
{
return
volVars
.
effectiveThermalConductivity
();
};
}
};
}
// end namespace Dumux
#endif
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