CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

dynamicRefineFvMesh on polyhedral meshes

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By potentialFoam

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2009, 05:57
Default dynamicRefineFvMesh on polyhedral meshes
  #1
Senior Member
 
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18
lr103476 is on a distinguished road
Hi everyone!

It's been a while since my last forum post, I was extremely busy wrapping up my PhD thesis. If time allows me, I will increase my message board involvement! Now the problem.

I am interested in using automatic refinement on arbitrary polyhedral meshes, which can be generated using ansys, snappy and some other tools. However, when running interDymFoam on the damBreak utility the following error occurs:

============
Selected 1178 cells for refinement out of 7854.
hexRef8 : Dumping cell as obj to "/media/data/OpenFOAM/frank-1.6/run/tutorials/multiphase/interDyMFoam/ras/damBreakWithObstacle/cell_9.obj"

cell 9 of level 0 does not seem to have 8 points of equal or lower level
cellPoints:6(28 29 30 31 32 33)
pointLevels:6{0}
============

Has anyone used dynamicRefineFvMesh before? Did anyone encounter and solve this problem?

Best regards,
Frank Bos
__________________
Frank Bos
lr103476 is offline   Reply With Quote

Old   October 21, 2009, 13:29
Default
  #2
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
I believe dynamic refinement is currently supported only for 3D meshes with hexahedral cells. That would explain the error - it expects cells containing exactly 8-points for octree sub-division.

Polyhedral mesh refinement is not a trivial problem. I think it might help to decompose polyhedral cells into tetrahedra, refine/de-refine/optimize, and then agglomerate appropriately. But to do this automatically and intelligently would be quite an accomplishment indeed.

Hope this helps.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   May 30, 2011, 02:09
Default
  #3
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Also face this problem: I intended to refine initially coarse grid according to my solution, but it fails on tet, prisms and pyramids, all that don't have 8 vertices should not pass)))

Is dynamicRefineFvMesh improved in OF1.7?
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   August 1, 2016, 11:24
Default
  #4
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
Dear Foamers,

I also face the same problem using adaptive/ dynamic mesh refinement in Foam (here OF version 3.0.1). The next figures show the refinement of a hexahedral mesh (generated with Hexpress5.1) behind a foil.
This is the original mesh:

And this is the refined mesh (refined cells chosen according to a vortex identification criterion; some dark grey cells fulfill this criterion too):


The dark grey colored cells mark 'protedtedCells' which are detected by 'dynamicFvMesh'. These cells contain hanging nodes and hence can be describes as 'polyhedral' cells. Besides, Foam seems not to be able to refine these cells. But: I really want to use some kind of adaptvie/ dynamic mesh refinement with this kind of grid.

Can someone help me out?

Regards,
Peter
potentialFoam is offline   Reply With Quote

Old   December 14, 2016, 10:59
Default
  #5
Member
 
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 10
potentialFoam is on a distinguished road
I found the solution here in conjunction with snappyHexMesh
http://www.openfoam.com/version-v1606+/meshing.php
under "snappyHexMesh refinement and unrefinement".

Thanks a lot to OpenCFD Ltd. for their valuable extensions!

Best Regards,
Peter
makaveli_lcf, Fschi and SGWANG like this.
potentialFoam is offline   Reply With Quote

Old   May 11, 2020, 12:03
Default
  #6
New Member
 
Quentin
Join Date: Apr 2020
Posts: 1
Rep Power: 0
lacostq is on a distinguished road
Hello Everyone,
I have experienced similar problem with AMR on snappyhexmesh case :
The problem was that cells with refinement level 2 were immediately next to level 0 cell.

Doing some distance mode region refinement solved the problem :

The surface refinement is of level 3, buffer layers are of level 2.

Region refinement :
stlsurface
{
mode distance;
levels ((0.5 1));
}
lacostq is offline   Reply With Quote

Reply


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
Getting prism to inflate into mixed tet-hex meshes Joe CFX 16 October 10, 2011 07:06
Polyhedral in parallel drdr18 FLUENT 5 April 3, 2009 17:56
[Commercial meshers] Importing Fluent polyhedral meshes fra76 OpenFOAM Meshing & Mesh Conversion 2 October 11, 2008 04:44
how to make polyhedral cell meshes mmacrb FLUENT 3 February 2, 2007 14:19
Polyhedral meshes in STAR-design Lee Siemens 3 March 10, 2005 16:43


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