Skip to content
Snippets Groups Projects

[WIP] Make free flow priVars names independent of discretization

Closed Kilian Weishaupt requested to merge feature/navierstokes-traits-disc-agnostic into master
14 files
+ 639
61
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -72,12 +72,12 @@ struct KEpsilonNCModelTraits : NavierStokesNCModelTraits<dimension, nComp, useMo
//! return the names of the primary variables in cells
template <class FluidSystem>
static std::string primaryVariableNameCell(int pvIdx, int state = 0)
static std::string primaryVariableName(int pvIdx, int state = 0)
{
using ParentType = NavierStokesNCModelTraits<dimension, nComp, useMoles, replaceCompEqIdx>;
if (pvIdx < nComp)
return ParentType::template primaryVariableNameCell<FluidSystem>(pvIdx, state);
else if (pvIdx == nComp)
if (pvIdx < nComp + dimension)
return ParentType::template primaryVariableName<FluidSystem>(pvIdx, state);
else if (pvIdx == nComp + dimension)
return "k";
else
return "epsilon";
Loading