Fixed error message and reinstated dummy enthalpy update.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-10-10 09:54:43 +02:00
parent 8977d64bc6
commit 7fe1ad5c69
2 changed files with 2 additions and 1 deletions

View File

@ -376,6 +376,7 @@ public:
// and the thermal condictivity coefficients
for (int phaseIdx = 0; phaseIdx < numPhases; ++ phaseIdx) {
if (!FluidSystem::phaseIsActive(phaseIdx)) {
fs.setEnthalpy(phaseIdx, 0.0);
continue;
}

View File

@ -297,7 +297,7 @@ public:
(*this)[waterSaturationIdx] = FsToolbox::value(fluidState.saturation(waterPhaseIdx));
(*this)[pressureSwitchIdx] = FsToolbox::value(fluidState.pressure(waterPhaseIdx));
} else {
throw std::logic_error("Only pure ware is presently allowed");
throw std::logic_error("For single-phase runs, only pure water is presently allowed.");
}
}