mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix to write VTKS when THERMAL is on deck
This commit is contained in:
parent
aa07b07da1
commit
d4bb923b7a
@ -87,6 +87,7 @@ class VtkBlackOilEnergyModule : public BaseOutputModule<TypeTag>
|
|||||||
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
|
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
|
||||||
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
|
using Evaluation = GetPropType<TypeTag, Properties::Evaluation>;
|
||||||
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
|
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
|
||||||
|
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
|
||||||
|
|
||||||
static const int vtkFormat = getPropValue<TypeTag, Properties::VtkOutputFormat>();
|
static const int vtkFormat = getPropValue<TypeTag, Properties::VtkOutputFormat>();
|
||||||
using VtkMultiWriter = ::Opm::VtkMultiWriter<GridView, vtkFormat>;
|
using VtkMultiWriter = ::Opm::VtkMultiWriter<GridView, vtkFormat>;
|
||||||
@ -172,13 +173,15 @@ public:
|
|||||||
scalarValue(intQuants.totalThermalConductivity());
|
scalarValue(intQuants.totalThermalConductivity());
|
||||||
|
|
||||||
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
|
||||||
if (fluidInternalEnergiesOutput_())
|
if (FluidSystem::phaseIsActive(phaseIdx)) {
|
||||||
fluidInternalEnergies_[phaseIdx][globalDofIdx] =
|
if (fluidInternalEnergiesOutput_())
|
||||||
scalarValue(intQuants.fluidState().internalEnergy(phaseIdx));
|
fluidInternalEnergies_[phaseIdx][globalDofIdx] =
|
||||||
|
scalarValue(intQuants.fluidState().internalEnergy(phaseIdx));
|
||||||
|
|
||||||
if (fluidEnthalpiesOutput_())
|
if (fluidEnthalpiesOutput_())
|
||||||
fluidEnthalpies_[phaseIdx][globalDofIdx] =
|
fluidEnthalpies_[phaseIdx][globalDofIdx] =
|
||||||
scalarValue(intQuants.fluidState().enthalpy(phaseIdx));
|
scalarValue(intQuants.fluidState().enthalpy(phaseIdx));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user