CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

createPatch command

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2019, 18:46
Default createPatch command
  #1
New Member
 
mekim
Join Date: Sep 2019
Posts: 21
Rep Power: 6
mekim is on a distinguished road
Hi, i run with createPatch command and i checked polyMesh boundary file and 0 file. i cannot see any problem.
Could anyoone guide me how to do ?

Thanks everyone who will answer




--> FOAM Warning :
From function const Foam::HashTable<Foam::List<int>, Foam::word>& Foam:olyBoundaryMesh::groupPatchIDs() const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 473
Removing patchGroup 'wall' which clashes with patch 6 of the same name.
--> FOAM Warning :
From function Foam::labelHashSet Foam:olyBoundaryMesh:atchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804
Cannot find any patch or group names matching cyclic1
--> FOAM Warning :
From function Foam::labelHashSet Foam:olyBoundaryMesh:atchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804
Cannot find any patch or group names matching cyclic2
--> FOAM Warning :
From function Foam::labelHashSet Foam:olyBoundaryMesh:atchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804
Cannot find any patch or group names matching cyclic1
--> FOAM Warning :
From function Foam::labelHashSet Foam:olyBoundaryMesh:atchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 804
Cannot find any patch or group names matching cyclic2
mekim is offline   Reply With Quote

Old   November 25, 2019, 07:54
Default
  #2
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 6
ingraban is on a distinguished road
From the warning messages, I guess, you've got the syntax of createPatchDict wrong. Apparently, you tried to use the patch name 'wall' twice. Maybe there is already a patch 'wall' in your model. And possibly, you tried to use faceSet names that aren't defined (e.g. in topoSetDict). If you post the file createPatchDict, maybe we'll know more.

Last edited by ingraban; November 28, 2019 at 10:20.
ingraban is offline   Reply With Quote

Old   November 25, 2019, 14:31
Default
  #3
New Member
 
mekim
Join Date: Sep 2019
Posts: 21
Rep Power: 6
mekim is on a distinguished road
thank u for answering.

My createPatch file:



Code:
 /*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.4.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

// Do a synchronisation of coupled points after creation of any patches.
// Note: this does not work with points that are on multiple coupled patches
//       with transformations (i.e. cyclics).
pointSync false;

// Patches to create.
patches
(
    {
        //- Master side patch
        name            periodic1;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  periodic2;
           // transform       noOrdering;
             transform translational;
            separationVector (0 -0.032841912 0);
        }
        constructFrom patches;
        patches (cyclic1);
    }

    {
        //- Slave side patch
        name            periodic2;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  periodic1;
       //     transform       noOrdering;
         transform translational;
            separationVector (0 0.032841912 0); 
        }
        constructFrom patches;
        patches (cyclic2);
    }

    
    
    {
        //- Master side patch
        name            frontcyc;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  backcyc;
           // transform       noOrdering;
            transform translational;
            separationVector (0 0 -0.0005);
        }
        constructFrom patches;
        patches (cyclic1);
    }

    {
        //- Slave side patch
        name            backcyc;
        patchInfo
        {
            type            cyclic;
            matchTolerance  0.0001;
            neighbourPatch  frontcyc;
       //     transform       noOrdering;
 transform translational;
            separationVector (0 0 0.0005);
        }
        constructFrom patches;
        patches (cyclic2);
    }
    
   /* {
        name inlet;
        patchInfo
        {
            type            patch;
        }
        constructFrom set;
        set inletFaces;
    }
    {
        name outlet;
        patchInfo
        {
            type            patch;
        }
        constructFrom set;
        set outletFaces;
    }*/
);

// ************************************************************************* //
mekim is offline   Reply With Quote

Old   November 26, 2019, 04:31
Default
  #4
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 6
ingraban is on a distinguished road
I don't understand the warning about patchGroup 'wall'. This name is not used in your createPatchDict. Maybe, you should also check the file /constant/polyMesh/boundary.
The other warnings are about patches to be created from the existing patches 'cyclic1' and 'cyclic2'. I expect, these patches must also be defined in /constant/polyMesh/boundary. If they are not there, createPatch cannot find them.
ingraban is offline   Reply With Quote

Old   November 26, 2019, 05:19
Default
  #5
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 7
Krao is on a distinguished road
Hi Mekim, attaching your boundary mesh would help to find the error
Krao is offline   Reply With Quote

Old   November 26, 2019, 09:12
Default
  #6
New Member
 
mekim
Join Date: Sep 2019
Posts: 21
Rep Power: 6
mekim is on a distinguished road
thank u for your attention.



my boundary file:


Code:
 FoamFile
{
    version     2.0;
    format      ascii;
    class       polyBoundaryMesh;
    location    "constant/polyMesh";
    object      boundary;
}
         
(
    backcyc
    {
        type patch;
        nFaces 39606;
        startFace 78626;
    }
    periodic1
    {
        type patch;
        nFaces 268;
        startFace 118232;
    }
    periodic2
    {
        type patch;
        nFaces 268;
        startFace 118500;
    }
    frontcyc
    {
        type patch;
        nFaces 39606;
        startFace 118768;
    }
    inlet
    {
        type patch;
        nFaces 147;
        startFace 158374;
    }
    outlet
    {
        type patch;
        nFaces 119;
        startFace 158521;
    }
    wall
    {
        type wall;
        nFaces 370;
        startFace 158640;
    }
)
mekim is offline   Reply With Quote

Old   November 28, 2019, 10:22
Default
  #7
Member
 
ingraban's Avatar
 
Ingo Riess
Join Date: Jun 2019
Location: Switzerland
Posts: 40
Rep Power: 6
ingraban is on a distinguished road
So, this is your boundary file after running createPatch, is it? It seems fine. Maybe you tried to run createPatch twice?
ingraban is offline   Reply With Quote

Old   November 28, 2019, 15:04
Default
  #8
New Member
 
mekim
Join Date: Sep 2019
Posts: 21
Rep Power: 6
mekim is on a distinguished road
I solved the problem. I edited the pacthes (..) part.
mekim is offline   Reply With Quote

Old   June 8, 2021, 21:19
Default 'edited the patches (..) part' ??
  #9
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 249
Rep Power: 6
boffin5 is on a distinguished road
Hi,
I am having the same problem, but I don't understand what you mean when you say you solved the problem. Can you give more detail about what you did with the 'patches (..)' part?
boffin5 is offline   Reply With Quote

Old   January 15, 2022, 16:45
Default
  #10
New Member
 
Evren Yilmaz Yakin
Join Date: Feb 2016
Location: Ankara, Turkey
Posts: 27
Rep Power: 10
evrenykn is on a distinguished road
Hi,

I am taking the same problem when I define wedges in my boundry and I can't solve the problem.

Code:
--> FOAM Warning : Creating fvModels from "constant/fvOptions"

Selecting finite volume model type radiation
    Name: radiation
Selecting radiationModel P1
Selecting absorptionEmissionModel greyMeanCombustion
Selecting scatterModel none
Selecting soot model none
--> FOAM Warning :
    From function const Foam::HashTable<Foam::List<int>, Foam::word>& Foam::polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 473
    Removing patchGroup 'wall' which clashes with patch 5 of the same name.
--> FOAM Warning : Creating fvConstraints from "constant/fvOptions" rather than system/fvConstraints
No fvConstraints present
__________________
Best Regards,

Evren
evrenykn is offline   Reply With Quote

Old   January 18, 2023, 19:20
Default Rename group wall to walls.
  #11
Member
 
ms
Join Date: Mar 2009
Location: West London
Posts: 47
Rep Power: 17
anothr_acc is on a distinguished road
Allow me.

I had the same. My system/blockMesh showed,

Code:
boundary ( wall { type wall; faces ( (0 1 2 3) (4 5 6 7) ); } )
Changing to

Code:
boundary ( walls { type wall; faces ( (0 1 2 3) (4 5 6 7) ); } )
fixed things. Don't forget to update references to wall in 0/* to walls.

Apologies for the inline format.

BR,

Mark.
anothr_acc 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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 03:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


All times are GMT -4. The time now is 11:06.