mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
scale energy residual to have the same relative order as the mass balance residuals
This commit is contained in:
parent
949bb6ecb5
commit
3e27c23222
@ -748,7 +748,7 @@ namespace Opm {
|
||||
}
|
||||
|
||||
if constexpr (has_energy_) {
|
||||
B_avg[ contiEnergyEqIdx ] += 1.0;
|
||||
B_avg[ contiEnergyEqIdx ] += 1.0 / (4.182e1); // converting J -> RM3 (entalpy / (cp * deltaK * rho) assuming change of 1e-5K of water
|
||||
const auto R2 = ebosResid[cell_idx][contiEnergyEqIdx];
|
||||
R_sum[ contiEnergyEqIdx ] += R2;
|
||||
maxCoeff[ contiEnergyEqIdx ] = std::max( maxCoeff[ contiEnergyEqIdx ], std::abs( R2 ) / pvValue );
|
||||
|
Loading…
Reference in New Issue
Block a user