Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • openfoam openfoam
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1982
Closed
Open
Created Jan 14, 2021 by Regő Simon@simrego

BUG in nearestPatchFaceAMI between regions (v2012)

Summary

In the 2012 version the nearestPatchfaceAMI mapping between regions is broken.

Steps to reproduce

  1. For example run the multiRegionHeaterRadiation case with allrun. Works fine.
  2. 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;
    }
  1. 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;
    }
  1. Now we have a nearestPatchfaceAMI mapping between the topAir and rightSolid. Let's run the simulation again from time 0.
  2. 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 Jan 14, 2021 by Regő Simon
Assignee
Assign to
Time tracking