|
[Sponsors] |
March 31, 2013, 07:07 |
dynamicMeshDict update issue during run
|
#1 |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 17 |
Dear All,
I'd like to know whether chagnes of dynamicMeshDict during run are refleted to the mesh motion or not, in pimpleDyMFoam. In the source of pimpleDyMFoam.C, includiuons of "creatDynamicFvMesh.H" is conducted once before the time-stepping loop. This is that we cannot run the solver in varing rotating speed ? Thanks in advance, waku2005 |
|
April 8, 2013, 06:46 |
|
#2 | |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 17 |
Further question.
In the solidBodyMotionFvMesh.C, dynamicMeshDict is defined as below. MUST_READ_IF_MODIFIED option means that when dynamicMeshDict was updated manually, it would be re-read. Even so I could not see such re-reading output and mesh change. I'd like to know how to re-read the dict file during run. Sincerely yours waku2005 Quote:
|
||
April 12, 2013, 05:18 |
|
#3 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Hello waku2005,
Maybe you look at my thread of last year: http://www.cfd-online.com/Forums/ope...rformance.html I, too, wanted to change shaft speed during iteration and it works. You may alter this code to another time dependent shaft speed function. If your shaft speed is a reaction of some forces induced by the flow, this is a different story. Hope this works for you, Regards, Daniel |
|
April 15, 2013, 01:02 |
|
#4 | |
Member
Join Date: Nov 2009
Posts: 65
Rep Power: 17 |
Hi Daniel
Thanks a lot for your reply. My objectives are 1. Dynamic update of rotational speed in dynamicMeshDict 2. From postProcessing data such as torque, do above update from a script or a new solver The 1st one is what in your thread and I'll try it. Sincerely waku2005 Quote:
|
||
April 15, 2013, 05:21 |
|
#5 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Hi waku2005,
Your are welcome. The post processing data is in a file called "forces" if you copy the code from my controlDic file. So, you only need to re-write dynamicmeshDic for each calculation step and relanch the calculation using the OpenFoam script. There are some examples in the tutorial using m4. I have used this in the past, because I was too lazy to retype the same command lines over and over again into the terminal. It is quite simple. Regards, Daniel |
|
August 27, 2015, 08:43 |
Changing of dynamicMeshDict during simulation in pimpleDyMFoam
|
#6 |
New Member
Rodrigo
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Dear waku2005,
Did you figure out if the change of dynamicMeshDict during simulation (run) affects the mesh motion in pimpleDyMFoam? I also want to change it during my simulation, but I'm not sure if It will change the velocity of the mesh (mesh motion). Best regards, Rodrigo Correa |
|
August 27, 2015, 10:19 |
|
#7 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15 |
Dear Rodrigo,
I would not recommend this because what is changed is not the mesh motion (rotational velocity), but the mesh position. The rotational speed is converted into a rotational angle. For constant rotational speed, this is straight forward. If you overwrite the extsting rotational speed, the agitator will make a huge jump since the time history of the rotation is lost. You must determine the function rotational speed on time, convert this to rotational angle and alter the code as it reported within thread mentioned above. Regards, Daniel |
|
August 27, 2015, 13:06 |
|
#8 |
New Member
Rodrigo
Join Date: Jul 2015
Posts: 18
Rep Power: 11 |
Dear Daniel Witte
Thank you so much for your reply! I did the manual change of the angular velocity before read your answer and i couldn't see any difference between the previous and the actual one. I'm not sure that It really changes the mesh rotation speed during the simulation. Best Regards, Rodrigo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Case running in serial, but Parallel run gives error | atmcfd | OpenFOAM Running, Solving & CFD | 18 | March 26, 2016 13:40 |
Using Workbench, CFX-Pre doesn't update mesh from upstream data | Shawn_A | CFX | 2 | November 25, 2012 14:06 |
Issue with running in parallel on multiple nodes | daveatstyacht | OpenFOAM | 7 | August 31, 2010 18:16 |
Flux update during an MPI run between decomposed case parts? | scott | OpenFOAM | 0 | July 21, 2010 21:47 |
What's the best order to run this simulation in? | siw | CFX | 1 | November 4, 2009 20:42 |