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

dynamicMeshDict update issue during run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2013, 07:07
Default dynamicMeshDict update issue during run
  #1
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
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
waku2005 is offline   Reply With Quote

Old   April 8, 2013, 06:46
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
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:
dynamicMeshCoeffs_
(
IOdictionary
(
IOobject
(
"dynamicMeshDict",
io.time().constant(),
*this,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE,
false
)
).subDict(typeName + "Coeffs")
),
waku2005 is offline   Reply With Quote

Old   April 12, 2013, 05:18
Default
  #3
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15
danny123 is on a distinguished road
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
danny123 is offline   Reply With Quote

Old   April 15, 2013, 01:02
Default
  #4
Member
 
Join Date: Nov 2009
Posts: 65
Rep Power: 17
waku2005 is on a distinguished road
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:
Originally Posted by danny123 View Post
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
waku2005 is offline   Reply With Quote

Old   April 15, 2013, 05:21
Default
  #5
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15
danny123 is on a distinguished road
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
danny123 is offline   Reply With Quote

Old   August 27, 2015, 08:43
Default Changing of dynamicMeshDict during simulation in pimpleDyMFoam
  #6
New Member
 
Rodrigo
Join Date: Jul 2015
Posts: 18
Rep Power: 11
Rodrigo Correa is on a distinguished road
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
Rodrigo Correa is offline   Reply With Quote

Old   August 27, 2015, 10:19
Default
  #7
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 15
danny123 is on a distinguished road
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
danny123 is offline   Reply With Quote

Old   August 27, 2015, 13:06
Default
  #8
New Member
 
Rodrigo
Join Date: Jul 2015
Posts: 18
Rep Power: 11
Rodrigo Correa is on a distinguished road
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
Rodrigo Correa 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
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


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