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
a9e6c2e5
Commit
a9e6c2e5
authored
Nov 23, 2020
by
Martin Schneider
Browse files
[ffpm] Adapt to new changes
parent
1e5858f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/multidomain/boundary/stokesdarcy/box/couplingdata.hh
View file @
a9e6c2e5
...
...
@@ -205,10 +205,11 @@ public:
const
auto
darcyPhaseIdx
=
couplingPhaseIdx
(
porousMediumIdx
);
const
auto
&
elemVolVars
=
*
(
data
.
elementVolVars
);
const
auto
&
darcyFvGeometry
=
data
.
fvGeometry
;
const
auto
&
darcyScvf
=
darcyFvGeometry
.
scvf
(
data
.
darcyScvfIdx
);
const
auto
&
localBasis
=
darcyFvGeometry
.
feLocalBasis
();
// darcy Permeability
const
auto
&
K
=
data
.
volVars
.
permeability
();
const
auto
&
K
=
data
.
permeability
();
// do second order integration as box provides linear functions
const
auto
&
rule
=
Dune
::
QuadratureRules
<
Scalar
,
darcyDim
-
1
>::
rule
(
data
.
segmentGeometry
.
type
(),
2
);
...
...
@@ -247,12 +248,12 @@ public:
const
auto
&
epsInterface
=
this
->
couplingManager
().
problem
(
freeFlowIdx
).
epsInterface
(
scvf
);
const
auto
&
M
=
this
->
couplingManager
().
problem
(
freeFlowIdx
).
matrixNTangential
(
scvf
);
//Add the integrated segment velocity to the sum: v+= -w_k * sqrt(det(A^T*A))*eps**2*M/mu*gradP
velocity
+=
mv
(
M
,
mv
(
qp
.
weight
()
*
data
.
segmentGeometry
.
integrationElement
(
ipLocal
)
/
data
.
volVars
.
viscosity
(
darcyPhaseIdx
)
*
epsInterface
*
epsInterface
,
gradP
));
velocity
+=
mv
(
M
,
mv
(
qp
.
weight
()
*
data
.
segmentGeometry
.
integrationElement
(
ipLocal
)
/
elemVolVars
[
darcyScvf
.
insideScvIdx
()]
.
viscosity
(
darcyPhaseIdx
)
*
epsInterface
*
epsInterface
,
gradP
));
}
else
{
//add the integrated segment velocity to the sum: v+= -weight_k * sqrt(det(A^T*A))*K/mu*gradP
velocity
+=
mv
(
K
,
mv
(
-
qp
.
weight
()
*
data
.
segmentGeometry
.
integrationElement
(
ipLocal
)
/
data
.
volVars
.
viscosity
(
darcyPhaseIdx
),
gradP
));
velocity
+=
mv
(
K
,
mv
(
-
qp
.
weight
()
*
data
.
segmentGeometry
.
integrationElement
(
ipLocal
)
/
elemVolVars
[
darcyScvf
.
insideScvIdx
()]
.
viscosity
(
darcyPhaseIdx
),
gradP
));
}
}
intersectionLength
+=
data
.
segmentGeometry
.
volume
();
...
...
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