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

[mesh manipulation] Cannot refine iteratively

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2011, 07:32
Default Cannot refine iteratively
  #1
Member
 
Join Date: Jan 2011
Posts: 45
Rep Power: 15
buffi is on a distinguished road
Hi,

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!


--> FOAM FATAL ERROR:
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;
globalCoeffs
{
tan1 (1 0 0);
tan2 (0 1 0);
}
directions
(
tan1
tan2
normal
);
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, 10:59
Default
  #2
Member
 
Join Date: Jan 2011
Posts: 45
Rep Power: 15
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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] Refine near wall layers zxj160 OpenFOAM Meshing & Mesh Conversion 2 August 25, 2022 07:57
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
[snappyHexMesh] SHM refine domain wall Tomatenbart OpenFOAM Meshing & Mesh Conversion 0 July 10, 2017 10:54
Overset: refine background mesh without resetting the mesh JohnAB STAR-CCM+ 6 May 19, 2014 13:48
Does CFX have a button to refine the mesh? lnk CFX 2 July 27, 2012 16:02


All times are GMT -4. The time now is 12:29.