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

2D adaptive Mesh Refinement

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

Like Tree1Likes
  • 1 Post By yhaomin2007

LinkBack Thread Tools Display Modes
Old   June 5, 2013, 13:44
Default 2D adaptive Mesh Refinement
New Member
Join Date: Jan 2013
Posts: 1
Rep Power: 0
baco is on a distinguished road
Hello Foamers,

i am new here.

i am not sure if it is right posting my problem in this forum... i hope it is ok.
I did create an adaptive mesh using dynamicRefineFvMesh. I adapted the hexRef8 class for splitting cells in 2D. Now i started my solver and the cell refinement runs good (the mesh check is OK) and now the big BUT it comes ...
Always if the mesh changes the calculations will be solved in 3D, i.e. the vector of velocity is directed in the 3.dimension.
And now comes sth weird. If i stop the calculation and then i re-start it from the last timestep then the calculation is correctly calculated in 2D. What is the problem, i have absolutely no idea.

many thanks
baco is offline   Reply With Quote

Old   June 7, 2013, 03:11
Senior Member
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
dear buddy, maybe you want to share your code and one test case here, maybe we can help you to solve the problem
Training Course on OpenFOAM at (
My Weblog (
nimasam is offline   Reply With Quote

Old   July 17, 2013, 14:45
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 54
Rep Power: 5
yhaomin2007 is on a distinguished road

As far as I know, the cut engine hexRef8 is only capable to cut cell into 8 subcells, which means it is 3 dimensions. I have seen a paper talking about cut cells in to 2 subcells, I think you look it up here:

Another question is, what solver are u using? I am now trying to implement AMR into steady solver.But I met some problems.
francescomarra likes this.
yhaomin2007 is offline   Reply With Quote

Old   July 28, 2013, 10:04
New Member
Johannes P
Join Date: Feb 2012
Posts: 8
Rep Power: 5
pjohannes183 is on a distinguished road
I'm also working on a 2D adaptive mesh refinement with a dynamicFvMesh. Does anybody have an idea whether it's good to start modifying the hexRef8 class, keeping its low-level style (which is really complicated) or if one could adapt hexRef8, keep using all its nice features and just plug in simpler mesh modification operations?

I successfully managed to do exactly the refinement I want using multiDirRefinement which gives me the type of meshes I want BUT It still lacks all the other capabilities which are needed for a dynamic mesh (like: field mapping, keeping track of the refinement history, allowing unrefinement etc.)

What I'd like to do is: take hexRef8 and rewrite it partially, using the code from multiDirRefinement, thus turning it into a hexRef4 or hexRef2.

Does anybody have a good idea how to start?
pjohannes183 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
[Workbench] mesh refinement of vortex tube using workbench aqsa1590 ANSYS Meshing & Geometry 3 December 25, 2014 09:57
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 23 August 6, 2014 03:50
snapEdge - failure Tobi OpenFOAM Native Meshers: snappyHexMesh and Others 33 March 18, 2014 04:58
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10

All times are GMT -4. The time now is 07:53.