mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
Compute entalpy for thermal boundary
This commit is contained in:
parent
ff8372bc40
commit
5c1bbd304b
@ -170,6 +170,10 @@ public:
|
||||
const auto& rho = FluidSystem::density(fluidState, phaseIdx, regionIdx);
|
||||
fluidState.setDensity(phaseIdx, rho);
|
||||
|
||||
if (enableEnergy) {
|
||||
const auto& h = FluidSystem::enthalpy(fluidState, phaseIdx, regionIdx);
|
||||
fluidState.setEnthalpy(phaseIdx, h);
|
||||
}
|
||||
}
|
||||
|
||||
// set the salt concentration
|
||||
|
@ -1597,7 +1597,10 @@ public:
|
||||
|
||||
const auto& rho = FluidSystem::density(fluidState, phaseIdx, pvtRegionIdx);
|
||||
fluidState.setDensity(phaseIdx, rho);
|
||||
|
||||
if (enableEnergy) {
|
||||
const auto& h = FluidSystem::enthalpy(fluidState, phaseIdx, pvtRegionIdx);
|
||||
fluidState.setEnthalpy(phaseIdx, h);
|
||||
}
|
||||
}
|
||||
fluidState.checkDefined();
|
||||
return fluidState;
|
||||
|
Loading…
Reference in New Issue
Block a user