CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Meshing & Mesh Conversion

Cannot refine iteratively

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

LinkBack Thread Tools Display Modes
Old   November 22, 2011, 08:32
Default Cannot refine iteratively
Join Date: Jan 2011
Posts: 45
Rep Power: 8
buffi is on a distinguished road

I have a hex mesh which I want to refine iteratively. I start with an initial mesh and then
- solve
- create cellSet from result
- refine according to cellSet
- map fields
- go back to solve

I have two cyclics in my mesh, one in x and one in y direction. When a cellSet for refinement is created, cells on the cyclics are selected in such a way that the opposite cell is selected as well, resulting in matching faces.

In the first iteration, refineMesh happily does its job and refines my mesh. In the second iteration, I am getting errors like this:

--> FOAM Serious Error :
From function cyclicPolyPatch:rder(const primitivePatch&, labelList&, labelList&) const
in file meshes/polyMesh/polyPatches/constraint/cyclic/cyclicPolyPatch.C at line 1566
Patch:inOutY : Cannot match vectors to faces on both sides of patch
Perhaps your faces do not match? The obj files written contain the current match.
Continuing with incorrect face ordering from now on!

face 0 area does not match neighbour 637 by 176.471% -- possible face ordering problem.
patch:inOutY my area:0.000432692 neighbour area:0.00692308 matching tolerance:0.001
Mesh face:166577 vertices:4((0 -1 -1) (0 -1 -0.980769) (-0.0225 -1 -0.980769) (-0.0225 -1 -1))
Neighbour face:167214 vertices:4((0 1 -0.538462) (-0.09 1 -0.538462) (-0.09 1 -0.461538) (0 1 -0.461538))
Rerun with cyclic debug flag set for more information.

First of all - where can I enable that cyclic debug flag?

My refineMeshDict settings are
coordinateSystem global;
tan1 (1 0 0);
tan2 (0 1 0);
useHexTopology true;
geometricCut false;
writeMesh false;

I have tried other settings which again resulted in errors.

I have tried running createPatch, but I'm not sure if (and when exactly) I should run it.

I am using OF 1.7.1. If necessary, I can upload a mesh and a cellSet for refinement.

Thanks for your help!
buffi is offline   Reply With Quote

Old   November 24, 2011, 11:59
Join Date: Jan 2011
Posts: 45
Rep Power: 8
buffi is on a distinguished road
My current workaround started with using dynamicRefineFvMesh in the solver, and then moving that out into a seperate tool. I can now solve - refine - map in a loop.
buffi is offline   Reply With Quote


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
USER_FORTRAN solve iteratively a linear equations system fipellac CFX 8 May 20, 2011 10:37
refine mesh!! Donia FLUENT 2 June 2, 2007 17:13
How to refine leading edge mesh in TurboGrid 10 Christian CFX 7 May 30, 2006 14:24
Export locally refine meshes to Tecplot Jens Siemens 3 June 18, 2003 18:02
Refine mesh in cylindrical coordinate Moussa Diarra Siemens 4 August 9, 2000 00:46

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