BUG in nearestPatchFaceAMI between regions (v2012)
Summary
In the 2012 version the nearestPatchfaceAMI mapping between regions is broken.
Steps to reproduce
- For example run the multiRegionHeaterRadiation case with allrun. Works fine.
- Modify the following entry in the constant/topAir/polyMesh/boundary file as (sampleMode is modified to AMI mapping):
topAir_to_rightSolid
{
type mappedWall;
inGroups 2 ( wall viewFactorWall );
nFaces 130;
startFace 3760;
sampleMode nearestPatchFaceAMI;
sampleRegion rightSolid;
samplePatch rightSolid_to_topAir;
}
- Modify the following entry in the constant/rightSolid/polyMesh/boundary file as (sampleMode is modified to AMI mapping):
rightSolid_to_topAir
{
type mappedWall;
inGroups 1 ( wall );
nFaces 130;
startFace 403;
sampleMode nearestPatchFaceAMI;
sampleRegion topAir;
samplePatch topAir_to_rightSolid;
}
- Now we have a nearestPatchfaceAMI mapping between the topAir and rightSolid. Let's run the simulation again from time 0.
- The mapping crashes with the following message even on a matching mesh:
--> FOAM FATAL ERROR: (openfoam-2012)
did not find sample (0.01666666 0.008 -0.045) on patch topAir_to_rightSolid on region topAir on processor 0
From void Foam::mappedPatchBase::calcMapping() const
in file mappedPatches/mappedPolyPatch/mappedPatchBase.C at line 946.
FOAM exiting
Edited by Regő Simon