Skip to content
Snippets Groups Projects
Commit 2ff8653e authored by Sina Ackermann's avatar Sina Ackermann Committed by Kilian Weishaupt
Browse files

[staggeredGrid][nonisothermal] Fix Fourier's law for staggered grid

parent 41b0f964
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!483Feature/staggered energy
...@@ -77,6 +77,7 @@ public: ...@@ -77,6 +77,7 @@ public:
using CacheFiller = FluxVariablesCaching::EmptyCacheFiller<TypeTag>; using CacheFiller = FluxVariablesCaching::EmptyCacheFiller<TypeTag>;
static CellCenterPrimaryVariables diffusiveFluxForCellCenter(const Problem& problem, static CellCenterPrimaryVariables diffusiveFluxForCellCenter(const Problem& problem,
const Element& element,
const FVElementGeometry& fvGeometry, const FVElementGeometry& fvGeometry,
const ElementVolumeVariables& elemVolVars, const ElementVolumeVariables& elemVolVars,
const SubControlVolumeFace &scvf) const SubControlVolumeFace &scvf)
...@@ -112,7 +113,7 @@ public: ...@@ -112,7 +113,7 @@ public:
else else
{ {
distance = (insideScv.dofPosition() - scvf.ipGlobal()).two_norm(); distance = (insideScv.dofPosition() - scvf.ipGlobal()).two_norm();
outsideTemp = problem.dirichletAtPos(scvf.center())[energyBalanceIdx]); outsideTemp = problem.dirichletAtPos(scvf.center())[energyBalanceIdx];
} }
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment