Commit 16b377a9 authored by Katharina Heck's avatar Katharina Heck Committed by Timo Koch
Browse files

[cleanup][nonequilibrium] cleanup and simplify

parent 3556eac7
......@@ -270,10 +270,6 @@ class NonEquilibriumVolumeVariablesImplementation< Traits,
static constexpr auto numEnergyEqFluid = ModelTraits::numEnergyEqFluid();
static constexpr auto numEnergyEqSolid = ModelTraits::numEnergyEqSolid();
static constexpr auto phase0Idx = FS::phase0Idx;
static constexpr auto phase1Idx = FS::phase1Idx;
static constexpr auto sPhaseIdx = FS::numPhases;
using DimLessNum = DimensionlessNumbers<Scalar>;
public:
......
......@@ -179,7 +179,10 @@ public:
if (numEnergyEq == 2)
{
const Scalar T = elemSol[scv.localDofIndex()][temperatureIdx];
fluidState.setTemperature(T);
for(int phaseIdx=0; phaseIdx < FluidSystem::numPhases; ++phaseIdx)
{
fluidState.setTemperature(phaseIdx, T);
}
}
//this is for numEnergyEqFluid > 1
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment