CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Mesh Utilities (http://www.cfd-online.com/Forums/openfoam-meshing-utilities/)
-   -   CreatePatch (http://www.cfd-online.com/Forums/openfoam-meshing-utilities/61493-createpatch.html)

chris1980 April 15, 2006 12:49

Is there any information (exam
 
Is there any information (example createPatchDict etc.) how to use the utility 'createPatch'?

mattijs April 18, 2006 05:37

Check the source directory of
 
Check the source directory of createPatch (mesh/manipulation/createPatch under $FOAM_UTILITIES). Should be a createPatchDict there.

hadi July 13, 2007 05:17

Hi to all, I am trying to r
 
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 zonehttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif1024 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 zonehttp://www.cfd-online.com/OpenFOAM_D...lipart/sad.gif1024 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 July 13, 2007 07:11

I ran create patch for each pa
 
I ran create patch for each pair of cyclic boundaries apart, and now it works!

Cheers
hadi

mou_mi June 16, 2008 15:03

Hi I made a file "createPat
 
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

kcjarvis56 February 12, 2009 00:51

I think my problem would fit u
 
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

gschaider February 12, 2009 12:33

Put back the messing e into fi
 
Put back the messing e into fixdGradient and everything will be fine

kcjarvis56 February 12, 2009 13:27

Many thanks. Typos on both ca
 
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


All times are GMT -4. The time now is 00:39.