diff --git a/src/thermophysicalModels/thermalPorousZone/thermalModel/fixedTemperature/fixedTemperature.C b/src/thermophysicalModels/thermalPorousZone/thermalModel/fixedTemperature/fixedTemperature.C index 4f75d3ee135a794e71e752a353a10659874cd633..9564b56c663492c278df5c1acb15fb20951e58bd 100644 --- a/src/thermophysicalModels/thermalPorousZone/thermalModel/fixedTemperature/fixedTemperature.C +++ b/src/thermophysicalModels/thermalPorousZone/thermalModel/fixedTemperature/fixedTemperature.C @@ -82,6 +82,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource scalarField& hDiag = hEqn.diag(); scalarField& hSource = hEqn.source(); + tmp<volScalarField> Cp = thermo.Cp(); + // TODO: generalize for non-fixedTemperature methods const scalar rate = 1e6; @@ -92,7 +94,8 @@ void Foam::porousMedia::fixedTemperature::addEnthalpySource forAll(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_; } } }