Skip to content
Snippets Groups Projects

Cleanup/move tensor average helper

Merged Mathis Kelm requested to merge cleanup/move-tensor-average-helper into master
All threads resolved!
10 files
+ 114
36
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -33,6 +33,7 @@
#include <dumux/common/properties.hh>
#include <dumux/discretization/method.hh>
#include <dumux/discretization/extrusion.hh>
#include <dumux/flux/facetensoraverage.hh>
namespace Dumux {
@@ -105,7 +106,7 @@ public:
insideK *= insideVolVars.extrusionFactor();
outsideK *= outsideVolVars.extrusionFactor();
const auto K = problem.spatialParams().harmonicMean(insideK, outsideK, scvf.unitOuterNormal());
const auto K = faceTensorAverage(insideK, outsideK, scvf.unitOuterNormal());
static const bool enableGravity = getParamFromGroup<bool>(problem.paramGroup(), "Problem.EnableGravity");
const auto& shapeValues = fluxVarCache.shapeValues();
@@ -152,7 +153,7 @@ public:
insideK *= insideVolVars.extrusionFactor();
outsideK *= outsideVolVars.extrusionFactor();
const auto K = problem.spatialParams().harmonicMean(insideK, outsideK, scvf.unitOuterNormal());
const auto K = faceTensorAverage(insideK, outsideK, scvf.unitOuterNormal());
std::vector<Scalar> ti(fvGeometry.numScv());
for (const auto& scv : scvs(fvGeometry))
Loading