Commit f9933f1b authored by Timo Koch's avatar Timo Koch
Browse files

[ff][momentum] Rename getInsideAndOutsideDensity to insideAndOutsideDensity

parent e6aef39b
......@@ -151,7 +151,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
return elemVolVars[scvf.outsideScvIdx()].velocity();
}();
const auto rho = problem.getInsideAndOutsideDensity(element, fvGeometry, scvf);
const auto rho = problem.insideAndOutsideDensity(element, fvGeometry, scvf);
const bool selfIsUpstream = scvf.directionSign() == sign(transportingVelocity);
const auto insideMomentum = innerVelocity * rho.first;
......@@ -277,7 +277,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
// Do not use upwinding here but directly take the slip velocity located on the boundary. Upwinding with a weight of 0.5
// would actually prevent second order grid convergence.
const auto rho = problem.getInsideAndOutsideDensity(fvGeometry.element(), fvGeometry, scvf);
const auto rho = problem.insideAndOutsideDensity(fvGeometry.element(), fvGeometry, scvf);
const auto transportedMomentum = slipVelocity * rho.second;
flux[scv.dofAxis()] += transportingVelocity * transportedMomentum * scvf.directionSign();
......@@ -348,7 +348,7 @@ struct NavierStokesMomentumBoundaryFluxHelper
return elemVolVars[scvf.outsideScvIdx()].velocity();
}();
const auto rho = problem.getInsideAndOutsideDensity(fvGeometry.element(), fvGeometry, scvf);
const auto rho = problem.insideAndOutsideDensity(fvGeometry.element(), fvGeometry, scvf);
const bool selfIsUpstream = scvf.directionSign() == sign(transportingVelocity);
const auto insideMomentum = innerVelocity * rho.first;
......
......@@ -429,7 +429,7 @@ public:
const auto innerVelocity = elemVolVars[scvf.insideScvIdx()].velocity();
const auto outerVelocity = elemVolVars[scvf.outsideScvIdx()].velocity();
const auto rho = this->problem().getInsideAndOutsideDensity(this->element(), fvGeometry, scvf);
const auto rho = this->problem().insideAndOutsideDensity(this->element(), fvGeometry, scvf);
const auto insideMomentum = innerVelocity * rho.first;
const auto outsideMomentum = outerVelocity * rho.second;
......
......@@ -334,10 +334,10 @@ public:
return asImp_().densityAtPos(scv.dofPosition());
}
auto getInsideAndOutsideDensity(const Element& element,
const FVElementGeometry& fvGeometry,
const SubControlVolumeFace& scvf,
const bool isPreviousTimeStep = false) const
auto insideAndOutsideDensity(const Element& element,
const FVElementGeometry& fvGeometry,
const SubControlVolumeFace& scvf,
const bool isPreviousTimeStep = false) const
{
if constexpr (isCoupled_)
return couplingManager_->insideAndOutsideDensity(element, fvGeometry, scvf, isPreviousTimeStep);
......
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