Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
b70d8a56
Commit
b70d8a56
authored
Dec 15, 2017
by
Kilian Weishaupt
Committed by
Timo Koch
Dec 19, 2017
Browse files
[staggered][faceVars] Use new index method
parent
f56916b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/discretization/staggered/freeflow/facevariables.hh
View file @
b70d8a56
...
...
@@ -43,6 +43,7 @@ class StaggeredFaceVariables
using
FacePrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
FacePrimaryVariables
);
using
SubControlVolumeFace
=
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolumeFace
);
using
FVElementGeometry
=
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
);
using
Indices
=
typename
GET_PROP_TYPE
(
TypeTag
,
Indices
);
static
constexpr
int
dimWorld
=
GridView
::
dimensionworld
;
static
constexpr
int
numPairs
=
(
dimWorld
==
2
)
?
2
:
4
;
...
...
@@ -120,13 +121,13 @@ public:
{
const
auto
&
normalFace
=
fvGeometry
.
scvf
(
scvf
.
insideScvIdx
(),
subFaceData
.
localNormalFaceIdx
);
const
auto
normalDirIdx
=
normalFace
.
directionIndex
();
velocityNormalOutside_
[
i
]
=
problem
.
dirichlet
(
element
,
makeGhostFace
(
subFaceData
.
virtualOuterNormalFaceDofPos
))[
faceIdx
][
normalDirIdx
];
velocityNormalOutside_
[
i
]
=
problem
.
dirichlet
(
element
,
makeGhostFace
(
subFaceData
.
virtualOuterNormalFaceDofPos
))[
Indices
::
velocity
(
normalDirIdx
)
];
}
// treat the velocity parallel to the face
velocityParallel_
[
i
]
=
hasParallelNeighbor
(
subFaceData
)
?
velocityParallel_
[
i
]
=
faceSol
[
subFaceData
.
outerParallelFaceDofIdx
]
:
problem
.
dirichlet
(
element
,
makeGhostFace
(
subFaceData
.
virtualOuterParallelFaceDofPos
))[
faceIdx
][
scvf
.
directionIndex
()];
problem
.
dirichlet
(
element
,
makeGhostFace
(
subFaceData
.
virtualOuterParallelFaceDofPos
))[
Indices
::
velocity
(
scvf
.
directionIndex
()
)
];
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment