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
6f93698f
Commit
6f93698f
authored
8 years ago
by
Dennis Gläser
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[facet] make coupled models work with mpfa methods other than the o-method
parent
cf94c701
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!617
[WIP] Next
,
!380
mixeddimension-facetcoupling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/mixeddimension/facet/mpfa/interactionvolume.hh
+31
-5
31 additions, 5 deletions
dumux/mixeddimension/facet/mpfa/interactionvolume.hh
with
31 additions
and
5 deletions
dumux/mixeddimension/facet/mpfa/interactionvolume.hh
+
31
−
5
View file @
6f93698f
...
...
@@ -42,15 +42,41 @@ using CCMpfaFacetCouplingInteractionVolume = CCMpfaFacetCouplingInteractionVolum
// Per default, we inherit from the standard interaction volumes
template
<
class
TypeTag
,
MpfaMethods
Method
>
class
CCMpfaFacetCouplingInteractionVolumeImplementation
:
public
CCMpfaInteractionVolumeImplementation
<
TypeTag
,
Method
>
{};
class
CCMpfaFacetCouplingInteractionVolumeImplementation
:
public
CCMpfaInteractionVolumeImplementation
<
TypeTag
,
Method
>
{
using
ParentType
=
CCMpfaInteractionVolumeImplementation
<
TypeTag
,
Method
>
;
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
);
using
FVElementGeometry
=
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
);
using
ElementVolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
);
public:
using
typename
ParentType
::
Seed
;
CCMpfaFacetCouplingInteractionVolumeImplementation
(
const
Seed
&
seed
,
const
Problem
&
problem
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
)
:
ParentType
(
seed
,
problem
,
fvGeometry
,
elemVolVars
)
{}
};
//! Specialization of the interaction volume traits class for the coupled models
template
<
class
TypeTag
>
class
CCMpfaFacetCouplingOInteractionVolumeTraits
:
public
CCMpfaOInteractionVolumeTraits
<
TypeTag
>
{
public:
using
BoundaryInteractionVolume
=
CCMpfaFacetCouplingInteractionVolumeImplementation
<
TypeTag
,
MpfaMethods
::
oMethod
>
;
};
// the o-method interaction volume is substituted by the one including data on the facet element's
// tensorial quantities into the local system to be solved. This has to be used as boundary interaction volume
template
<
class
TypeTag
>
class
CCMpfaFacetCouplingInteractionVolumeImplementation
<
TypeTag
,
MpfaMethods
::
oMethod
>
:
public
CCMpfaInteractionVolume
Implementation
<
TypeTag
,
Mpfa
Methods
::
oMethod
>
:
public
CCMpfa
O
InteractionVolume
<
TypeTag
,
CC
Mpfa
FacetCouplingOInteractionVolumeTraits
<
TypeTag
>
>
{
using
ParentType
=
CCMpfaInteractionVolumeImplementation
<
TypeTag
,
MpfaMethods
::
oMethod
>
;
using
Traits
=
CCMpfaFacetCouplingOInteractionVolumeTraits
<
TypeTag
>
;
using
ParentType
=
CCMpfaOInteractionVolume
<
TypeTag
,
Traits
>
;
using
Scalar
=
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
...
...
@@ -63,7 +89,7 @@ class CCMpfaFacetCouplingInteractionVolumeImplementation<TypeTag, MpfaMethods::o
using
InteriorBoundaryData
=
typename
GET_PROP_TYPE
(
TypeTag
,
InteriorBoundaryData
);
using
ElementVolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
);
using
LocalScvfType
=
typename
ParentType
::
Traits
::
LocalScvfType
;
using
LocalScvfType
=
typename
Traits
::
LocalScvfType
;
static
constexpr
bool
useTpfaBoundary
=
GET_PROP_VALUE
(
TypeTag
,
UseTpfaBoundary
);
...
...
@@ -113,7 +139,7 @@ public:
MpfaHelper
::
nT_M_v
(
n
,
facetTensor
,
v
);
}
void
assembleNeumannFluxVector
_
()
void
assembleNeumannFluxVector
()
{
// initialize the neumann fluxes vector to zero
this
->
neumannFluxes_
.
resize
(
this
->
fluxFaceIndexSet_
.
size
(),
PrimaryVariables
(
0.0
));
...
...
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