Skip to content
Snippets Groups Projects
Commit e1a5f3f8 authored by mattijs's avatar mattijs
Browse files

END: chtMultiRegionFoam: avoid double registration of Cp

parent 967c9e3e
Branches
Tags
No related merge requests found
......@@ -2,7 +2,9 @@ scalar DiNum = -GREAT;
forAll(solidRegions, i)
{
#include "setRegionSolidFields.H"
//- Note: do not use setRegionSolidFields.H to avoid double registering Cp
//#include "setRegionSolidFields.H"
const solidThermo& thermo = thermos[i];
tmp<volScalarField> magKappa;
if (thermo.isotropic())
......@@ -14,6 +16,12 @@ forAll(solidRegions, i)
magKappa = mag(thermo.Kappa());
}
tmp<volScalarField> tcp = thermo.Cp();
const volScalarField& cp = tcp();
tmp<volScalarField> trho = thermo.rho();
const volScalarField& rho = trho();
DiNum = max
(
solidRegionDiffNo
......
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