Skip to content
Snippets Groups Projects
Commit ce526669 authored by sergio's avatar sergio
Browse files

BUG: Fixed fixedTemperature on thermal porous zone.

parent a188b8ad
No related merge requests found
...@@ -82,6 +82,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource ...@@ -82,6 +82,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource
scalarField& hDiag = hEqn.diag(); scalarField& hDiag = hEqn.diag();
scalarField& hSource = hEqn.source(); scalarField& hSource = hEqn.source();
tmp<volScalarField> Cp = thermo.Cp();
// TODO: generalize for non-fixedTemperature methods // TODO: generalize for non-fixedTemperature methods
const scalar rate = 1e6; const scalar rate = 1e6;
...@@ -92,7 +94,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource ...@@ -92,7 +94,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource
forAll(cells, i) forAll(cells, i)
{ {
hDiag[cells[i]] += rate*V[cells[i]]*rho[cells[i]]; hDiag[cells[i]] += rate*V[cells[i]]*rho[cells[i]];
hSource[cells[i]] += rate*V[cells[i]]*rho[cells[i]]*T_; hSource[cells[i]] +=
rate*V[cells[i]]*rho[cells[i]]*Cp()[cells[i]]*T_;
} }
} }
} }
......
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