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

how to make a mesh decomposition again when using interFoam/dynamicRefineFvMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2021, 08:08
Default how to make a mesh decomposition again when using interFoam/dynamicRefineFvMesh
  #1
New Member
 
jianfeng zou
Join Date: Feb 2013
Posts: 6
Rep Power: 13
jianfeng is on a distinguished road
Dear all,
I'm working on OpenFOAM2012. I'm using a interFoam with dynamicRefineFvMesh to compute a gas/fluid interface. The mesh is decomposed at t=0 and the problem is solved for some time, like t=t0. To achieve a good load balance, I want to make a mesh decomposition again. The function 'redistributePar' has been tested in my study, but I failed to achieve a new mesh decomposition with right cells and interpolated solution on them. Will anyone tell me the right steps to work with 'redistributePar'? Thanks very much.
jianfeng is offline   Reply With Quote

Old   June 27, 2021, 09:57
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

Any chance to elaborate on "The function 'redistributePar' has been tested in my study, but I failed to achieve a new mesh decomposition with right cells and interpolated solution on them" with a minimal working example, if possible? Thanks!
HPE is offline   Reply With Quote

Old   June 28, 2021, 22:06
Default
  #3
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
What you're looking for is commonly referred to as load balancing. This has been published e.g. by Rettenmaier et al for interFoam (https://github.com/ElsevierSoftwareX/SOFTX_2018_143). I think some derivative of their code may have even been integrated into v2012 -- check out dynamicRefineBalancedMesh.

Caelan
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   July 1, 2021, 10:05
Default
  #4
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16
guin is on a distinguished road
Quote:
Originally Posted by jianfeng View Post
Dear all,
I'm working on OpenFOAM2012. I'm using a interFoam with dynamicRefineFvMesh to compute a gas/fluid interface. The mesh is decomposed at t=0 and the problem is solved for some time, like t=t0. To achieve a good load balance, I want to make a mesh decomposition again. The function 'redistributePar' has been tested in my study, but I failed to achieve a new mesh decomposition with right cells and interpolated solution on them. Will anyone tell me the right steps to work with 'redistributePar'? Thanks very much.
I suggest you to take a look at following thread: Run-Time Parallel Load Balancing
guin is offline   Reply With Quote

Old   July 1, 2021, 16:36
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
- No code has been implemented from Rettenmaier et al.'s work into any of OpenFOAM software, I'm afraid.
- Maybe this package can be useful: interIsoFoam + multiDimAMR.
HPE is offline   Reply With Quote

Old   July 1, 2021, 16:45
Default
  #6
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 15
clapointe is on a distinguished road
I must have misremembered and tried it myself, thanks for checking. If you check out the info provided with the other repo, though, you'll see they reference Rettenmaier et al as well and it looks like they have it available for e.g. v2012 (Henning Scheufler's code does appear to be available as of very recently : commit). Regardless of where it comes from, the load balancing code is available for recent versions of interFoam.

Caelan
__________________
Public git repository : https://github.com/clapointe2011/public
clapointe is offline   Reply With Quote

Old   July 1, 2021, 17:22
Default
  #7
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
multiDimAMR externally uses Rettenmaier et al.'s work which is not available in v20*. danke.
HPE 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
foam-extend-4.1 release hjasak OpenFOAM Announcements from Other Sources 19 July 16, 2021 06:02
GeometricField -> mesh() Function Tobi OpenFOAM Programming & Development 10 November 19, 2020 12:33
compiling firefoam Farshad_Noravesh OpenFOAM 27 December 24, 2012 05:21
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
[ICEM] How to make Pereodic Tetra mesh? ale-kc ANSYS Meshing & Geometry 6 November 15, 2010 15:23


All times are GMT -4. The time now is 01:21.