Skip to content
Snippets Groups Projects
Commit a0d06665 authored by Timo Koch's avatar Timo Koch
Browse files

[1pnc][doc] Add comment for setting mass fractions

parent f358e82f
No related branches found
No related tags found
2 merge requests!1337WIP Fix/dirichlet caching v2,!1332Fix/1pnc usemoles
...@@ -158,6 +158,8 @@ public: ...@@ -158,6 +158,8 @@ public:
} }
else else
{ {
// for mass fractions we only have to set numComponents-1 mass fractions
// the fluid state will internally compute the remaining mass fraction
for (int compIdx = 1; compIdx < numFluidComps; ++compIdx) for (int compIdx = 1; compIdx < numFluidComps; ++compIdx)
fluidState.setMassFraction(0, compIdx, priVars[compIdx]); fluidState.setMassFraction(0, compIdx, priVars[compIdx]);
} }
......
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