Skip to content
Snippets Groups Projects
Commit 7474f7e5 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[navierstokesnc][localres] Fix dirichlet method

parent 0b488bc9
No related branches found
No related tags found
2 merge requests!676Cleanup/staggered remove privar class,!617[WIP] Next
...@@ -150,7 +150,7 @@ protected: ...@@ -150,7 +150,7 @@ protected:
{ {
const auto& insideVolVars = elemVolVars[insideScv]; const auto& insideVolVars = elemVolVars[insideScv];
const Scalar massOrMoleFraction = useMoles ? insideVolVars.moleFraction(phaseIdx, compIdx) : insideVolVars.massFraction(phaseIdx, compIdx); const Scalar massOrMoleFraction = useMoles ? insideVolVars.moleFraction(phaseIdx, compIdx) : insideVolVars.massFraction(phaseIdx, compIdx);
residual[eqIdx] = massOrMoleFraction - problem.dirichletAtPos(insideScv.center())[cellCenterIdx][eqIdx]; residual[eqIdx] = massOrMoleFraction - problem.dirichletAtPos(insideScv.center())[eqIdx];
} }
} }
......
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