Skip to content
Snippets Groups Projects
Commit 09c4d061 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[velocityoutput][box1d] Include extrusion factor

parent f95910db
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!533[vtk] Improve velocity output for box 1d
...@@ -161,9 +161,11 @@ public: ...@@ -161,9 +161,11 @@ public:
// get the volume flux divided by the area of the // get the volume flux divided by the area of the
// subcontrolvolume face in the reference element // subcontrolvolume face in the reference element
// TODO: Divide by extrusion factor!!?
Scalar localArea = scvfReferenceArea_(geomType, scvf.index()); Scalar localArea = scvfReferenceArea_(geomType, scvf.index());
Scalar flux = fluxVars.advectiveFlux(phaseIdx, upwindTerm) / localArea; Scalar flux = fluxVars.advectiveFlux(phaseIdx, upwindTerm) / localArea;
flux /= problem_.extrusionFactor(element,
fvGeometry.scv(scvf.insideScvIdx()),
problem_.model().elementSolution(element, problem_.model().curSol()));
tmpVelocity *= flux; tmpVelocity *= flux;
const int eIdxGlobal = problem_.elementMapper().index(element); const int eIdxGlobal = problem_.elementMapper().index(element);
......
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