CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] New feature of redistributePar utility in OpenFOAM-v2012

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2021, 08:48
Lightbulb New feature of redistributePar utility in OpenFOAM-v2012
  #1
New Member
 
cyou
Join Date: Nov 2011
Posts: 15
Rep Power: 14
cyou is on a distinguished road
I encountered a fetal error when running redistributePar before chtMultiRegionFoam.
Code:
Selecting decompositionMethod simple [1] (region BaseBoard)
From time 0 have objects:4(rho cellToRegion p T)
[3] [0] 
[0] 
[1] 
[1] 
[1] --> FOAM FATAL ERROR: (openfoam-2012[2] 
[2] 
[2] --> FOAM FATAL ERROR: (openfoam-
[3] 
[3] --> FOAM FATAL ERROR: (openfoam-2012)
[3] Cannot find a patch which is neither of type empty nor coupled in patches 
67
(
.
.
.
There has to be at least one such patch for distribution to work
[1] 
[1]     From Foam::label Foam::fvMeshDistribute::findNonEmptyPatch() const
[1]     in file fvMeshDistribute/fvMeshDistribute.C at line 353.
[1] 
FOAM parallel run aborting
[1]
I checked the source code and found the mappedPatch is seen as empty patch from OP-v2012.
Code:
    label nonEmptyPatchi = -1;

    forAllReverse(patches, patchi)
    {
        const polyPatch& pp = patches[patchi];

        if
        (
           !isA<emptyPolyPatch>(pp)
        && !isCoupledPatch(patchi)
        && !isA<mappedPatchBase>(pp)
        )
        {
            nonEmptyPatchi = patchi;
            break;
        }
    }

    if (nonEmptyPatchi == -1)
    {
        FatalErrorInFunction
            << "Cannot find a patch which is neither of type empty nor"
            << " coupled in patches " << patches.names() << endl
            << "There has to be at least one such patch for"
            << " distribution to work" << abort(FatalError);
    }
All surface of solid region in my case is setted as mappedWall.
I want to use redistributePar to assign solid region to only one processor.
Any suggestions for my problem?
cyou is offline   Reply With Quote

Old   July 12, 2021, 14:34
Default
  #2
New Member
 
Nick Holt
Join Date: Jun 2015
Posts: 3
Rep Power: 10
nholt is on a distinguished road
I'm also having this problem. It is also preventing me from running CHT cases with an isolated and smaller fluid region, since the smaller fluid region is only distributed onto one processor and the 'pRefCell' SIMPLE quantity gives an error for processors which do not contain any part of that mesh.

Would it be best to change the patch types to 'patch' before redistributing and then changing them back to mapped afterwards?
nholt is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 05:40
OpenFOAM 4.0 sample utility Bazinga OpenFOAM Running, Solving & CFD 0 August 30, 2016 10:36
[Other] question concerning the OpenFOAM utility: plot3dToFoam Chatur Ramalingum OpenFOAM Meshing & Mesh Conversion 7 June 20, 2013 16:52
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


All times are GMT -4. The time now is 09:43.