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

pimpleDyMFoam refine and moving mesh

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

Like Tree3Likes
  • 2 Post By Tobi
  • 1 Post By guin

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2017, 08:38
Default pimpleDyMFoam refine and moving mesh
  #1
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 8
decibelle is on a distinguished road
hello,

I work with a moving mesh (oscillating and rotating mesh motion) with pimpledymfoam. I would like to refine this mesh during the running. is it possible with pimpledymfoam?
what I have to do?

thanks in advance
decibelle is offline   Reply With Quote

Old   July 11, 2017, 10:44
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,687
Blog Entries: 6
Rep Power: 49
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
Hi,

short answer to a short question. Yes it is. There is the dynamicRefineFvMesh Lib (hope I wrote it correct). Here you can refine the mesh based on a quantity. It is called adaptive mesh refinement (AMR). One case can be checked out here: http://www.holzmann-cfd.de/index.php...aptive-meshing

However, the actual lib can only handle 3d cases properly. 2D case refinement is not possible and you only can refine hexaeders. All other volume types will be protected.
decibelle and LuisAndresMT like this.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 11, 2017, 10:56
Default
  #3
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 8
decibelle is on a distinguished road
thank you so much, it's just what I need
decibelle is offline   Reply With Quote

Old   July 12, 2017, 07:42
Default
  #4
Member
 
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 15
guin is on a distinguished road
Quote:
Originally Posted by Tobi View Post
Hi,

short answer to a short question. Yes it is. There is the dynamicRefineFvMesh Lib (hope I wrote it correct). Here you can refine the mesh based on a quantity. It is called adaptive mesh refinement (AMR). One case can be checked out here: http://www.holzmann-cfd.de/index.php...aptive-meshing

However, the actual lib can only handle 3d cases properly. 2D case refinement is not possible and you only can refine hexaeders. All other volume types will be protected.
Just an observation:
From here one cannot deduce the compatibility of AMR with mesh motion in OpenFOAM. I think this was the initial question at this thread.

From my understanding, AMR uses "dynamicRefineFvMesh" and mesh motion uses "dynamicMotionSolverFvMesh". They are both "dynamicFvMesh"-based, but (I think that) their current implementation did not take into account their simultaneous use in a single case. In fact, both use the same dictionary (constant/dynamicFvMesh file), where you first must specify what kind of dynamicFvMesh utility do you want to use e.g. "staticFvMesh", "dynamicRefineFvMesh", "dynamicMotionSolverFvMesh", etc...

Please, correct me if I am wrong. Indeed I would be glad if anyone was able to use both functionalities within the same run and could share with the community the keypoints for that to work.
Tobi likes this.
guin is offline   Reply With Quote

Old   July 12, 2017, 08:19
Default
  #5
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 8
decibelle is on a distinguished road
Quote:
Originally Posted by guin View Post
Just an observation:
From here one cannot deduce the compatibility of AMR with mesh motion in OpenFOAM. I think this was the initial question at this thread.

From my understanding, AMR uses "dynamicRefineFvMesh" and mesh motion uses "dynamicMotionSolverFvMesh". They are both "dynamicFvMesh"-based, but (I think that) their current implementation did not take into account their simultaneous use in a single case. In fact, both use the same dictionary (constant/dynamicFvMesh file), where you first must specify what kind of dynamicFvMesh utility do you want to use e.g. "staticFvMesh", "dynamicRefineFvMesh", "dynamicMotionSolverFvMesh", etc...

Please, correct me if I am wrong. Indeed I would be glad if anyone was able to use both functionalities within the same run and could share with the community the keypoints for that to work.
Yes, you're right, it was my initial question. I try since 2 month to refine and to move the mesh, but actually I don't have any result.
decibelle is offline   Reply With Quote

Old   July 12, 2017, 08:40
Default
  #6
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,687
Blog Entries: 6
Rep Power: 49
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
Hi all,

I am sorry that I did not get the real point of the question. To complete everything and proof what Guin already said:
  • You cannot do motion + refinement in FOAM with the standard utilities
  • You can make it possible - I did it already 2 years ago
  • Unfortunately, the command rm -r OpenFOAM2.4.x was too fast and I lost my development
  • As a guideline: You have to make a new library that first calls the lib which moves the mesh and then calls the lib which refines it
Based on the fact that I just tested it and lost my lib, I never did it again because there was no need (for my purpose). Sorry for that bad new. But if you will make such a library, I guess the community would be happy to have it

Again. Sorry for the miss understanding.



Good luck.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   December 5, 2017, 17:02
Default
  #7
New Member
 
Join Date: Apr 2013
Posts: 26
Rep Power: 12
pippo2013 is on a distinguished road
Hi Decibelle,

have you succeded in combining mesh moving and refining?
It would be a great help for me!
pippo2013 is offline   Reply With Quote

Reply

Tags
movingmesh, pimpledymfoam, refine mesh

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
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 08:54
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
Overset: refine background mesh without resetting the mesh JohnAB STAR-CCM+ 6 May 19, 2014 13:48
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


All times are GMT -4. The time now is 19:59.