CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[dRInterfaceLib] dynamicRefineFvMesh with two regions

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2017, 13:42
Default
  #41
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
OpenFOAM does not support 2D adaptive mesh refinement. So you cannot do it. So you have to develop your own library.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   September 16, 2017, 15:38
Default
  #42
Senior Member
 
sandy
Join Date: Feb 2016
Location: .
Posts: 117
Rep Power: 10
saddy is on a distinguished road
as far as i know openfoam refinement works only for 3d cases. there is no refinement for 2d cases
saddy is offline   Reply With Quote

Old   November 29, 2017, 16:06
Default
  #43
Member
 
Honza Höll
Join Date: Mar 2016
Location: Brno, CZ
Posts: 37
Rep Power: 10
indy07cz is on a distinguished road
Hello,
i have a question. I'm solving a spillway simulation with interFoam solver and i solve 59 seconds of simulation. After that (in 60th second) I would like to refine surface to obtain better (smoother) results but cells I want to refine are protected (300k cells) and refine doesn't work. Should I solve entire simulation with dynamicrefinement or is this problem somehow connected with mesh? lowerLimit for alpha is 0.2 and upper 0.6, maxCell refinement is 2000000. Thank you very much.

Edit: Sorry, there was something wrong with simulation running. Refinement works, protected cells are near geometry surface and they are not hexahedral so protecting is on purpose.

Last edited by indy07cz; November 30, 2017 at 05:38.
indy07cz is offline   Reply With Quote

Old   March 27, 2018, 04:05
Default
  #44
Member
 
Join Date: May 2016
Posts: 39
Rep Power: 10
dzordz is on a distinguished road
Quote:
Originally Posted by Lorena2fdez View Post
Hi all,

I use this library to study the evolution of a droplet at rest. This is a very interesting tool for me, but the problem is that the volume of the drop increases progressively.

I check it and this problem only appears when I use this library and an axi-symmetric mesh (with an empty border and two patch wedges). And more exactly, I think, the reason is that the width of the cells is divided (see attached photo). Width (z-direction) should be 1 cell.

Do you know how to avoid this problem?

Thank you in advance

Lorena


Attachment 58399
Hi Lorena,

the refinement work in 3D, but I have been able to use it also in 2D axis-symmetry. I do not mind if the refinement is also in the third directions, since it still greatly reduces the amount of cells that need to be calculated.

I can see that near the symmetry line you do not get the refinement. This is due to the fact that the cells there are not hexahedrons and are not set to be refined. Simplest way this can be resolved is by doing a small cut of the bottom cells (e.g. 1% of length) which can be done with extrudeMeshDict. In this way you basically turn all the bottom cells to hexahedrons. (Just be careful that this cut does not change your case in any significant way)

I did a "damBreak" test, to test if Tobias's interface refinement behaves properly also in wedge and it does (at least for a simple case like this). See the attached picture.


The only problem with doing this kind of refinement in wedge is that you get nonAlignedEdges where the refinement happens, which can be problematic. If anybody knows how to resolve this I would much appreciate it (2D refinement would ?).

Hope this helped,
cheers
Attached Images
File Type: png workingcomparison.png (39.2 KB, 52 views)
dzordz 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
[snappyHexMesh] multiple regions Tobi OpenFOAM Meshing & Mesh Conversion 56 March 29, 2020 05:53
[ANSYS Meshing] ICEM CFX Primitive Regions Appearing after Smoothing syble ANSYS Meshing & Geometry 1 July 29, 2016 17:29
[CAD formats] Clean / Repair STL file with multiple regions on command line matthiasd OpenFOAM Meshing & Mesh Conversion 6 May 24, 2016 07:51
Determining the calculation sequence of the regions in multe regions calculation peterhess OpenFOAM Running, Solving & CFD 4 March 9, 2016 04:07
chtMultiRegionFoam different properties in (fluid) region(s) volker1 OpenFOAM Pre-Processing 3 February 4, 2015 07:46


All times are GMT -4. The time now is 22:08.