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

BUG: Fix of temperatureThermoBaffle for multi prperties case

parent 2416e48c
Branches
Tags
No related merge requests found
...@@ -107,6 +107,11 @@ temperatureThermoBaffleFvPatchScalarField ...@@ -107,6 +107,11 @@ temperatureThermoBaffleFvPatchScalarField
<< exit(FatalError); << exit(FatalError);
} }
const directMappedPatchBase& mpp =
refCast<const directMappedPatchBase>(patch().patch());
const word nbrMesh = mpp.sampleRegion();
const fvMesh& thisMesh = patch().boundaryMesh().mesh(); const fvMesh& thisMesh = patch().boundaryMesh().mesh();
typedef regionModels::thermoBaffleModels::thermoBaffleModel baffle; typedef regionModels::thermoBaffleModels::thermoBaffleModel baffle;
...@@ -114,14 +119,15 @@ temperatureThermoBaffleFvPatchScalarField ...@@ -114,14 +119,15 @@ temperatureThermoBaffleFvPatchScalarField
if if
( (
thisMesh.name() == polyMesh::defaultRegion thisMesh.name() == polyMesh::defaultRegion
&& !thisMesh.foundObject<baffle>("thermoBaffle") && !thisMesh.foundObject<baffle>(nbrMesh)
&& !owner_ && !owner_
) )
{ {
Info << "Creating thermal baffle..." << endl; Info << "Creating thermal baffle..." << nbrMesh << endl;
baffle_.reset(baffle::New(thisMesh, dict).ptr()); baffle_.reset(baffle::New(thisMesh, dict).ptr());
owner_ = true; owner_ = true;
dict.lookup("thermoType") >> solidThermoType_; dict.lookup("thermoType") >> solidThermoType_;
baffle_->rename(nbrMesh);
} }
} }
......
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