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
91ea9d10
Commit
91ea9d10
authored
7 years ago
by
Kilian Weishaupt
Committed by
Dennis Gläser
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[staggered][freeflow] Remove TypeTag from FaceVariables
parent
475041b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!878
Free grid/element/face volvars/fluxvarcache from typetag
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/staggered/freeflow/facevariables.hh
+7
-20
7 additions, 20 deletions
dumux/discretization/staggered/freeflow/facevariables.hh
dumux/discretization/staggered/freeflow/properties.hh
+8
-1
8 additions, 1 deletion
dumux/discretization/staggered/freeflow/properties.hh
with
15 additions
and
21 deletions
dumux/discretization/staggered/freeflow/facevariables.hh
+
7
−
20
View file @
91ea9d10
...
...
@@ -24,8 +24,7 @@
#ifndef DUMUX_DISCRETIZATION_STAGGERED_FREEFLOW_FACEVARIABLES_HH
#define DUMUX_DISCRETIZATION_STAGGERED_FREEFLOW_FACEVARIABLES_HH
#include
<dune/common/fvector.hh>
#include
<dumux/common/properties.hh>
#include
<array>
namespace
Dumux
{
...
...
@@ -35,27 +34,14 @@ namespace Dumux
* \brief The face variables class for free flow staggered grid models.
* Contains all relevant velocities for the assembly of the momentum balance.
*/
template
<
class
TypeTag
>
template
<
class
FacePrimaryVariables
,
int
dim
>
class
StaggeredFaceVariables
{
using
Problem
=
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
using
FacePrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FacePrimaryVariables
);
using
FVElementGeometry
=
typename
GET_PROP_TYPE
(
TypeTag
,
FVGridGeometry
)
::
LocalView
;
using
SubControlVolumeFace
=
typename
FVElementGeometry
::
SubControlVolumeFace
;
using
Indices
=
typename
GET_PROP_TYPE
(
TypeTag
,
Indices
);
static
constexpr
int
dimWorld
=
GridView
::
dimensionworld
;
static
constexpr
int
numPairs
=
(
dimWorld
==
2
)
?
2
:
4
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
DofTypeIndices
=
typename
GET_PROP
(
TypeTag
,
DofTypeIndices
);
typename
DofTypeIndices
::
CellCenterIdx
cellCenterIdx
;
typename
DofTypeIndices
::
FaceIdx
faceIdx
;
static
constexpr
int
numPairs
=
(
dim
==
2
)
?
2
:
4
;
using
Scalar
=
typename
FacePrimaryVariables
::
block_type
;
public:
using
Scalar
=
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
);
/*!
* \brief Partial update of the face variables. Only the face itself is considered.
*
...
...
@@ -76,7 +62,8 @@ public:
* \param fvGeometry The finite-volume geometry
* \param scvf The sub-control volume face of interest
*/
template
<
class
SolVector
>
template
<
class
SolVector
,
class
Problem
,
class
Element
,
class
FVElementGeometry
,
class
SubControlVolumeFace
>
void
update
(
const
SolVector
&
faceSol
,
const
Problem
&
problem
,
const
Element
&
element
,
...
...
This diff is collapsed.
Click to expand it.
dumux/discretization/staggered/freeflow/properties.hh
+
8
−
1
View file @
91ea9d10
...
...
@@ -106,7 +106,14 @@ public:
};
//! The variables living on the faces
SET_TYPE_PROP
(
StaggeredFreeFlowModel
,
FaceVariables
,
StaggeredFaceVariables
<
TypeTag
>
);
SET_PROP
(
StaggeredFreeFlowModel
,
FaceVariables
)
{
private:
using
FacePrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FacePrimaryVariables
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
public:
using
type
=
StaggeredFaceVariables
<
FacePrimaryVariables
,
GridView
::
dimension
>
;
};
//! Boundary types at a single degree of freedom
SET_PROP
(
StaggeredFreeFlowModel
,
BoundaryTypes
)
...
...
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