diff --git a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C index 6cbddc56723cdbec59fee5f09456b7bca0cb6230..e1506f058c2e028d6032a4990c01adf402df476f 100644 --- a/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C +++ b/src/TurbulenceModels/compressible/turbulentFluidThermoModels/derivedFvPatchFields/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2019 OpenCFD Ltd. + Copyright (C) 2019-2020 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -118,16 +118,6 @@ turbulentTemperatureCoupledBaffleMixedFvPatchScalarField kappaLayers_(0), contactRes_(0.0) { - if (!isA<mappedPatchBase>(this->patch().patch())) - { - FatalErrorInFunction - << "' not type '" << mappedPatchBase::typeName << "'" - << "\n for patch " << p.name() - << " of field " << internalField().name() - << " in file " << internalField().objectPath() - << exit(FatalError); - } - if (dict.readIfPresent("thicknessLayers", thicknessLayers_)) { dict.readEntry("kappaLayers", kappaLayers_); diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseI.H b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseI.H index 350dab003feb76fafa187bbf74acf13b31d1d942..d89e3fb15f049aaf54ef143ed413456733f0ea2c 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseI.H +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPatchBaseI.H @@ -167,7 +167,9 @@ inline bool Foam::mappedPatchBase::sameRegion() const inline const Foam::mapDistribute& Foam::mappedPatchBase::map() const { const polyMesh& thisMesh = patch_.boundaryMesh().mesh(); - bool topoChange = sampleMesh().topoChanging() || thisMesh.topoChanging(); + bool topoChange = + (sameWorld() && sampleMesh().topoChanging()) + || thisMesh.topoChanging(); if (topoChange) { @@ -189,7 +191,9 @@ inline const Foam::AMIPatchToPatchInterpolation& Foam::mappedPatchBase::AMI ) const { const polyMesh& thisMesh = patch_.boundaryMesh().mesh(); - bool topoChange = sampleMesh().topoChanging() || thisMesh.topoChanging(); + bool topoChange = + (sameWorld() && sampleMesh().topoChanging()) + || thisMesh.topoChanging(); if (topoChange || forceUpdate) { diff --git a/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler/solid/system/fvSolution b/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler/solid/system/fvSolution index 31ca7120238707c5538989ff51ace03bb311f9bc..813e92c688b6507fccc6ce2581fa30d6308ae26b 100644 --- a/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler/solid/system/fvSolution +++ b/tutorials/multiphase/compressibleInterFoam/laminar/waterCooler/solid/system/fvSolution @@ -17,7 +17,7 @@ FoamFile solvers { - h + "h.*" { solver PCG; preconditioner DIC;