mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4281 from OPM/revert-4262-fixInjTemp2
Revert "remove derivative in thermal flux for injectors"
This commit is contained in:
commit
a9cb568ed0
@ -681,15 +681,12 @@ namespace Opm
|
|||||||
fs.setDensity(phaseIdx, rho);
|
fs.setDensity(phaseIdx, rho);
|
||||||
const auto& h = FluidSystem::enthalpy(fs, paramCache, phaseIdx);
|
const auto& h = FluidSystem::enthalpy(fs, paramCache, phaseIdx);
|
||||||
fs.setEnthalpy(phaseIdx, h);
|
fs.setEnthalpy(phaseIdx, h);
|
||||||
cq_r_thermal *= this->extendEval(fs.enthalpy(phaseIdx)) * this->extendEval(fs.density(phaseIdx));
|
}
|
||||||
connectionRates[perf][Indices::contiEnergyEqIdx] += getValue(cq_r_thermal);
|
|
||||||
} else {
|
|
||||||
// compute the thermal flux
|
// compute the thermal flux
|
||||||
cq_r_thermal *= this->extendEval(fs.enthalpy(phaseIdx)) * this->extendEval(fs.density(phaseIdx));
|
cq_r_thermal *= this->extendEval(fs.enthalpy(phaseIdx)) * this->extendEval(fs.density(phaseIdx));
|
||||||
connectionRates[perf][Indices::contiEnergyEqIdx] += Base::restrictEval(cq_r_thermal);
|
connectionRates[perf][Indices::contiEnergyEqIdx] += Base::restrictEval(cq_r_thermal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if constexpr (has_polymer) {
|
if constexpr (has_polymer) {
|
||||||
// TODO: the application of well efficiency factor has not been tested with an example yet
|
// TODO: the application of well efficiency factor has not been tested with an example yet
|
||||||
|
Loading…
Reference in New Issue
Block a user