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
57c6acfa
Commit
57c6acfa
authored
Nov 05, 2021
by
Martin Schneider
Browse files
[md][stokesdarcy] Generalise permeability return type
parent
04444393
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/multidomain/boundary/stokesdarcy/couplingdata.hh
View file @
57c6acfa
...
...
@@ -281,7 +281,7 @@ public:
*/
template
<
bool
scalarPerm
=
std
::
is_same
<
typename
Problem
<
porousMediumIdx
>
::
SpatialParams
::
PermeabilityType
,
Scalar
>::
value
,
std
::
enable_if_t
<
scalarPerm
,
int
>
=
0
>
Scalar
darcyPermeability
(
const
Element
<
freeFlowIdx
>&
element
,
const
SubControlVolumeFace
<
freeFlowIdx
>&
scvf
)
const
auto
darcyPermeability
(
const
Element
<
freeFlowIdx
>&
element
,
const
SubControlVolumeFace
<
freeFlowIdx
>&
scvf
)
const
{
const
auto
&
stokesContext
=
couplingManager
().
stokesCouplingContext
(
element
,
scvf
);
const
auto
perm
=
stokesContext
.
permeability
();
...
...
@@ -294,13 +294,12 @@ public:
*/
template
<
bool
scalarPerm
=
std
::
is_same
<
typename
Problem
<
porousMediumIdx
>
::
SpatialParams
::
PermeabilityType
,
Scalar
>::
value
,
std
::
enable_if_t
<!
scalarPerm
,
int
>
=
0
>
Scalar
darcyPermeability
(
const
Element
<
freeFlowIdx
>&
element
,
const
SubControlVolumeFace
<
freeFlowIdx
>&
scvf
)
const
auto
darcyPermeability
(
const
Element
<
freeFlowIdx
>&
element
,
const
SubControlVolumeFace
<
freeFlowIdx
>&
scvf
)
const
{
const
auto
&
stokesContext
=
couplingManager
().
stokesCouplingContext
(
element
,
scvf
);
const
auto
perm
=
stokesContext
.
permeability
();
const
auto
dirIdx
=
1
-
scvf
.
directionIndex
();
return
perm
[
dirIdx
][
dirIdx
]
;
return
perm
;
}
/*!
...
...
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