CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

CreatePatch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2006, 12:49
Default Is there any information (exam
  #1
Member
 
chris book
Join Date: Mar 2009
Posts: 85
Rep Power: 8
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, 05:37
Default Check the source directory of
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
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, 05:17
Default Hi to all, I am trying to r
  #3
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 8
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, 07:11
Default I ran create patch for each pa
  #4
Member
 
hadi tartoussi
Join Date: Mar 2009
Location: paris
Posts: 48
Rep Power: 8
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, 15:03
Default Hi I made a file "createPat
  #5
Member
 
mohd mojab
Join Date: Mar 2009
Posts: 31
Rep Power: 8
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
New Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 6
Rep Power: 8
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: 3,915
Rep Power: 40
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
New Member
 
Kirk Jarvis
Join Date: Mar 2009
Posts: 6
Rep Power: 8
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

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CreatePatch to create cyclic boundary sbence OpenFOAM Mesh Utilities 18 August 30, 2012 06:51
CreatePatch crashes segmentation violation in createPatch for cyclic boundaries sek OpenFOAM Bugs 26 February 10, 2010 12:41
Using createPatch in place of couplePatches sripplinger OpenFOAM Mesh Utilities 8 November 13, 2009 08:14
CreatePatch after subsetMesh maka OpenFOAM Mesh Utilities 2 August 27, 2008 07:28


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