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

[mesh manipulation] CreatePatch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2006, 13:49
Default CreatePatch
  #1
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 17
chris1980 is on a distinguished road
Is there any information (example createPatchDict etc.) how to use the utility 'createPatch'?
chris1980 is offline   Reply With Quote

Old   April 18, 2006, 06:37
Default Check the source directory of
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Check the source directory of createPatch (mesh/manipulation/createPatch under $FOAM_UTILITIES). Should be a createPatchDict there.
mattijs is offline   Reply With Quote

Old   July 13, 2007, 06:17
Default Hi to all, I am trying to r
  #3
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 17
hadi is on a distinguished road
Hi to all,

I am trying to reproduce the same case as in channel395 tutorial, i made the mesh using gambit, i exported a .msh file,the conversion fluentMeshToFoam works!
In boundary file i set cyclic boundary conditions on inout and sides.
My createPatchDict looks like:
patches
(
{
// Name of new patch
name leftRight0;

// Type of new patch
type cyclic;

// How to construct: either 'patches' or 'set'
constructFrom patches;

// If constructFrom = patches : names of patches
patches (inout1 inout2);


// If constructFrom = set : name of faceSet
//set f0;
}

//{
//name bottom;
//type patch;

//constructFrom set;

//patches (half0 half1);

//set bottomFaces;
//}

);

// ************************************************** *********************** //
but after running createPatch i got the following message error:

Reading createPatchDict

Copying patch top at position 0
Copying patch bottom at position 1
Copying patch side1 at position 2
Copying patch side2 at position 3
Copying patch inout2 at position 4
Copying patch inout1 at position 5
Adding new patch leftRight0 of type cyclic as patch 6
Moving faces from patch inout1 to patch 6
Moving faces from patch inout2 to patch 6

Removing empty patch inout2
Removing empty patch inout1
Compacted patches:
top size:256 start:46848
bottom size:256 start:47104
side1 size:1024 start:47360
side2 size:1024 start:48384
leftRight0 size:0 start:49408
cyclicPolyPatch::order : Number of faces per zone1024 0)
cyclicPolyPatch::order : Writing half0 face centres to OBJ file "side1_half0.obj"
cyclicPolyPatch::order : Writing half1 face centres to OBJ file "side1_half1.obj"
--> FOAM Serious Error :
From function cyclicPolyPatch::order(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/derivedPolyPatches/cyclicPolyPatch/cyclicPolyPatch.C at line 583
patch:side1 : Patch side1 gets decomposed in two zones ofinequal size: 1024 and 0
This means that the patch is either not two separate regions or one region where the angle between the different regions is not sufficiently sharp.
Please use topological matching or adapt the featureCos() setting
Continuing with incorrect face ordering from now on!
cyclicPolyPatch::order : Number of faces per zone1024 0)
cyclicPolyPatch::order : Writing half0 face centres to OBJ file "side2_half0.obj"
cyclicPolyPatch::order : Writing half1 face centres to OBJ file "side2_half1.obj"
--> FOAM Serious Error :
From function cyclicPolyPatch::order(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/derivedPolyPatches/cyclicPolyPatch/cyclicPolyPatch.C at line 583
patch:side2 : Patch side2 gets decomposed in two zones ofinequal size: 1024 and 0
This means that the patch is either not two separate regions or one region where the angle between the different regions is not sufficiently sharp.
Please use topological matching or adapt the featureCos() setting
Continuing with incorrect face ordering from now on!
Writing repatched mesh to 0.2
End

Do u think it is due to a conversion problem while using fluenMeshToFoam? or my createPatchDict is not well set?
Any Help Will Be appreciated!
Hadi
hadi is offline   Reply With Quote

Old   July 13, 2007, 08:11
Default I ran create patch for each pa
  #4
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 17
hadi is on a distinguished road
I ran create patch for each pair of cyclic boundaries apart, and now it works!

Cheers
hadi
hadi is offline   Reply With Quote

Old   June 16, 2008, 16:03
Default Hi I made a file "createPat
  #5
Member
 
mohd mojab
Join Date: Mar 2009
Posts: 31
Rep Power: 17
mou_mi is on a distinguished road
Hi

I made a file "createPatchDict"the same as hadi said. When I ran the ceratePatch, it works well and create new patch but with nFaces 0;.


Create polyMesh for time = 0

Reading createPatchDict

Copying patch outlet at position 0
Copying patch inlet at position 1
Copying patch wall at position 2
Copying patch back at position 3
Copying patch front at position 4
Adding new patch backfront of type cyclic as patch 5
Moving faces from patch front to patch 5
Moving faces from patch back to patch 5

Removing empty patch back
Removing empty patch front
Compacted patches:
outlet size:1100 start:648200
inlet size:300 start:649300
wall size:1400 start:649600
backfront size:0 start:651000
Writing repatched mesh to 0.0005
End

would you tell me where is my problem?

Thank you
mou
mou_mi is offline   Reply With Quote

Old   February 12, 2009, 01:51
Default I think my problem would fit u
  #6
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
I think my problem would fit under this thread. I am able to create smaller patches (via faceSet and createPatch) on walls, which are use to bring transport fluid in and out of a larger area (that is the intent, vents and a fan on the walls of a room). The new patches are on the mesh when it is viewed in paraview. When I go to run the case I get the following error:
Exec : boussinesqBuoyantFoam
Date : Feb 11 2009
Time : 23:25:20
Host : kirk-desktop
PID : 19080
Case : /home/kirk/OpenFOAM/kirk-1.5-dev/run/tutorials/boussinesqBuoyantFoam/testCase
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading transportProperties


Reading environmentalProperties
Reading field p

Reading field T

Reading field U

Reading/calculating face flux field phi

Reading/calculating field rho


Starting time loop

Time = 0.2

Courant Number mean: 0 max: 20



gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type fixdValue)
on patch oFan of field U in file "/home/kirk/OpenFOAM/kirk-1.5-dev/run/tutorials/boussinesqBuoyantFoam/testCase/0 /U"
You are probably trying to solve for a field with a generic boundary condition.

From function genericFvPatchField<type>::gradientInternalCoeffs( ) const
in file fields/fvPatchFields/basic/generic/genericFvPatchField.C at line 692.

FOAM exiting

I have tried different solvers with the same result.

Any help would be great.
Thanks for your time.
Kirk
kcjarvis56 is offline   Reply With Quote

Old   February 12, 2009, 13:33
Default Put back the messing e into fi
  #7
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Put back the messing e into fixdGradient and everything will be fine
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   February 12, 2009, 14:27
Default Many thanks. Typos on both ca
  #8
Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 31
Rep Power: 17
kcjarvis56 is on a distinguished road
Many thanks. Typos on both cases. I thought I was missing a step. If I would have of read the error message closer.

Thanks again,

Kirk
kcjarvis56 is offline   Reply With Quote

Old   November 16, 2016, 16:44
Default
  #9
New Member
 
Pedro
Join Date: Feb 2016
Location: United States
Posts: 23
Rep Power: 10
pedramtx is on a distinguished road
Hi foamers,
I'm trying to simulate a flow domain in OF, but I have come across a problem when running createPatch. Any help regarding the issue is greatly appreciated.

Pedram

Here is the message that I get after executing createPatch:

Reading createPatchDict.

Create polyMesh for time = 2.2

Adding new patch back_cyclic0 as patch 12 from
{
type cyclic;
matchTolerance 0.001;
neighbourPatch front_cyclic0;
}

Adding new patch back_cyclic1 as patch 13 from
{
type cyclic;
matchTolerance 0.001;
neighbourPatch front_cyclic1;
}

Adding new patch front_cyclic0 as patch 14 from
{
type cyclic;
matchTolerance 0.001;
neighbourPatch back_cyclic0;
}

Adding new patch front_cyclic1 as patch 15 from
{
type cyclic;
matchTolerance 0.001;
neighbourPatch back_cyclic1;
}


--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto8
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto4
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto11
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto5
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto7
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto1
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto10
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto6
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto3
--> FOAM Warning :
From function polyBoundaryMesh:atchSet(const wordReList&, const bool) const
in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 573
Cannot find any patch names matching auto2


Doing topology modification to order faces.

Dumping back_cyclic0 faces to "coupled_back_cyclic0.obj"
Dumping front_cyclic0 faces to "coupled_front_cyclic0.obj"
Dumping cyclic match as lines between face centres to "coupled_back_cyclic0front_cyclic0_match.obj"
Dumping back_cyclic1 faces to "coupled_back_cyclic1.obj"
Dumping front_cyclic1 faces to "coupled_front_cyclic1.obj"
Dumping cyclic match as lines between face centres to "coupled_back_cyclic1front_cyclic1_match.obj"
Not synchronising points.

Removing patches with no faces in them.

Removing empty patch back_cyclic0 at position 12
Removing empty patch back_cyclic1 at position 13
Removing empty patch front_cyclic0 at position 14
Removing empty patch front_cyclic1 at position 15
Removing patches.
Writing repatched mesh to 2.20001

End
pedramtx is offline   Reply With Quote

Reply


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
createPatch cyclic boundary condition KateEisenhower OpenFOAM Pre-Processing 3 September 4, 2018 15:30
There is a bug in createPatch? feno102 OpenFOAM Pre-Processing 6 November 1, 2017 03:24
Cyclic BCs using createPatch in OF 1.6.x SunnyPP OpenFOAM 2 August 6, 2010 11:21
[Salome] unv mesh corrupted after createPatch maddalena OpenFOAM Meshing & Mesh Conversion 1 February 18, 2010 08:43
[mesh manipulation] CreatePatch after subsetMesh maka OpenFOAM Meshing & Mesh Conversion 2 August 27, 2008 08:28


All times are GMT -4. The time now is 14:10.