CreatePatch
Is there any information (example createPatchDict etc.) how to use the utility 'createPatch'?
|
Check the source directory of
Check the source directory of createPatch (mesh/manipulation/createPatch under $FOAM_UTILITIES). Should be a createPatchDict there.
|
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 |
I ran create patch for each pa
I ran create patch for each pair of cyclic boundaries apart, and now it works!
Cheers hadi |
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 |
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 |
Put back the messing e into fi
Put back the messing e into fixdGradient and everything will be fine
|
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 |
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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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::patchSet(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 |
All times are GMT -4. The time now is 02:16. |