Commit 1e5858f9 authored by Martin Schneider's avatar Martin Schneider
Browse files

[ffpm] Apply changes from feature/update-box-couplingdata branch

parent 012d8780
......@@ -102,6 +102,11 @@ private:
std::size_t darcyScvfIdx;
std::size_t stokesScvfIdx;
VolumeVariables<porousMediumIdx> volVars;
auto permeability() const
{
return volVars.permeability();
}
};
struct StationaryDarcyCouplingContext
......
......@@ -284,7 +284,7 @@ public:
Scalar darcyPermeability(const Element<freeFlowIdx>& element, const SubControlVolumeFace<freeFlowIdx>& scvf) const
{
const auto& stokesContext = couplingManager().stokesCouplingContext(element, scvf);
const auto perm = stokesContext.volVars.permeability();
const auto perm = stokesContext.permeability();
return perm;
}
......@@ -297,7 +297,7 @@ public:
Scalar darcyPermeability(const Element<freeFlowIdx>& element, const SubControlVolumeFace<freeFlowIdx>& scvf) const
{
const auto& stokesContext = couplingManager().stokesCouplingContext(element, scvf);
const auto perm = stokesContext.volVars.permeability();
const auto perm = stokesContext.permeability();
const auto dirIdx = 1 - scvf.directionIndex();
return perm[dirIdx][dirIdx];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment