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

Modifying dynamicMeshDict during simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2022, 13:18
Post Modifying dynamicMeshDict during simulation
  #1
New Member
 
Adrian del Ser
Join Date: Oct 2021
Posts: 15
Rep Power: 5
adrian.delser is on a distinguished road
Hi everyone,


Has anyone tried modifying the dynamicMeshDict during a simulation (for example, changing the rotation rate omega of a spinning body so that it changes midway through the simulation). This would be useful to be able to control the rate of rotation with an external controller (with python for example). Would this even work or does the dynamicMeshDict get read once at the start of the simulation only?


Thanks
adrian.delser is offline   Reply With Quote

Old   February 10, 2022, 04:35
Default
  #2
Member
 
Join Date: Dec 2018
Posts: 75
Rep Power: 7
hbulus is on a distinguished road
Quote:
Originally Posted by adrian.delser View Post
Hi everyone,


Has anyone tried modifying the dynamicMeshDict during a simulation (for example, changing the rotation rate omega of a spinning body so that it changes midway through the simulation). This would be useful to be able to control the rate of rotation with an external controller (with python for example). Would this even work or does the dynamicMeshDict get read once at the start of the simulation only?


Thanks
I think it might be possible if you define dynamicMesh in system/controlDict file. Of course enable adjustable in run time.
However, it will probably bring divergence problems if radical changes adopted. Please, let us know if it works.
hbulus is offline   Reply With Quote

Old   February 11, 2022, 06:40
Default
  #3
New Member
 
Adrian del Ser
Join Date: Oct 2021
Posts: 15
Rep Power: 5
adrian.delser is on a distinguished road
Quote:
Originally Posted by hbulus View Post
I think it might be possible if you define dynamicMesh in system/controlDict file. Of course enable adjustable in run time.
However, it will probably bring divergence problems if radical changes adopted. Please, let us know if it works.

How would you define dynamicMesh inside the controlDict? So far if I try to change the rotation rate in dynamicMeshDict after a simulation has started it will have no effect (I suspect omega is read only once at the start of the simulation). One could of course stop the simulation, change omega, and resume from the last time step, but this is far from ideal.
adrian.delser is offline   Reply With Quote

Reply

Tags
amicyclic, dynamicmeshdict


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
Convergence Problem - Transient Simulation gemxx Main CFD Forum 0 July 15, 2018 10:36
Mapping Field Data for Mesh Regions from Another Simulation veterator OpenFOAM Pre-Processing 1 July 10, 2018 06:28
Surface Source - Fixed Temperature? robtheslob FloEFD, FloWorks & FloTHERM 18 May 12, 2017 03:28
Simulation FPEs - turbulence for transient and steady-state? DaveR OpenFOAM Running, Solving & CFD 5 March 5, 2017 16:06
setting up a simulation with multiple interactions phandy OpenFOAM Running, Solving & CFD 1 October 6, 2014 04:16


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