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

dynamicMeshDict update issue during run

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 31, 2013, 06:07
Default dynamicMeshDict update issue during run
  #1
Member
 
Join Date: Nov 2009
Posts: 61
Rep Power: 7
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, 05:46
Default
  #2
Member
 
Join Date: Nov 2009
Posts: 61
Rep Power: 7
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, 04:18
Default
  #3
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 120
Rep Power: 5
danny123 is on a distinguished road
Hello waku2005,

Maybe you look at my thread of last year:

AMI speed performance

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, 00:02
Default
  #4
Member
 
Join Date: Nov 2009
Posts: 61
Rep Power: 7
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:

AMI speed performance

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, 04:21
Default
  #5
Senior Member
 
Daniel Witte
Join Date: Nov 2011
Posts: 120
Rep Power: 5
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

Reply

Thread Tools
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 On
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 15 July 27, 2015 08:19
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 17:16
Flux update during an MPI run between decomposed case parts? scott OpenFOAM 0 July 21, 2010 20: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 22:42.