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

[staggerednc][localresidual] Account for energy storage

parent 3f60b4e9
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!483Feature/staggered energy
......@@ -84,6 +84,7 @@ class StaggeredNavierStokesResidualImpl<TypeTag, true> : public StaggeredNavierS
using VolumeVariables = typename GET_PROP_TYPE(TypeTag, VolumeVariables);
using GlobalFaceVars = typename GET_PROP_TYPE(TypeTag, GlobalFaceVars);
using EnergyLocalResidual = typename GET_PROP_TYPE(TypeTag, EnergyLocalResidual);
static constexpr int numComponents = GET_PROP_VALUE(TypeTag, NumComponents);
static constexpr bool useMoles = GET_PROP_VALUE(TypeTag, UseMoles);
......@@ -121,7 +122,8 @@ class StaggeredNavierStokesResidualImpl<TypeTag, true> : public StaggeredNavierS
if(replaceCompEqIdx < numComponents)
storage[replaceCompEqIdx] = density;
//TODO: energy balance
EnergyLocalResidual::fluidPhaseStorage(storage, scv, volVars);
return storage;
}
};
......
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