Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
openfoam
openfoam
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 365
    • Issues 365
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • openfoamopenfoam
  • Issues
  • #1982

Closed
Open
Created Jan 14, 2021 by 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 Simon
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None