Skip to content
Snippets Groups Projects
Commit 68e36946 authored by Kutalmış Berçin's avatar Kutalmış Berçin
Browse files

BUG: externalWallHeatFluxTemperature: prevent FPE in mixedEnergy condition (fixes #3123)

parent c6ecf311
1 merge request!695OpenFOAM v2406
...@@ -331,7 +331,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() ...@@ -331,7 +331,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
Q_->value(this->db().time().timeOutputValue()); Q_->value(this->db().time().timeOutputValue());
refGrad() = (heatPower/gSum(patch().magSf()) + qr)/kappa(Tp); refGrad() = (heatPower/gSum(patch().magSf()) + qr)/kappa(Tp);
refValue() = 0; refValue() = 293.15; // prevents FPE, no impact on condition
valueFraction() = 0; valueFraction() = 0;
break; break;
...@@ -342,7 +342,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs() ...@@ -342,7 +342,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
q_->value(this->db().time().timeOutputValue()); q_->value(this->db().time().timeOutputValue());
refGrad() = (heatFlux + qr)/kappa(Tp); refGrad() = (heatFlux + qr)/kappa(Tp);
refValue() = 0; refValue() = 293.15; // prevents FPE, no impact on condition
valueFraction() = 0; valueFraction() = 0;
break; break;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment