CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Resetting all fields and mesh motion

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

LinkBack Thread Tools Display Modes
Old   May 21, 2012, 13:00
Default Resetting all fields and mesh motion
New Member
Pal Schmitt
Join Date: Aug 2010
Location: Belfast
Posts: 20
Rep Power: 9
wavemaster is on a distinguished road
Dear all,
I am attempting to write some implicit solver for a body moved by a fluid.
I would like to move the body boundary, calculate the fluid, obtain accelerations and then reset to where I started and repeat as often as I need before advancing the timestep.

The .prevIter(); seems to store all fields all right, so before entering into my implicit loop I am able to save all my fields like this.
Inside the implicit loop I use something like
to get back to the starting point of the current timestep.

I can run a case without moving the mesh and it seems to repeat every timestep a couple of times which shows i am OK, I suppose.
Moving meshes run but diverge, so I must be resetting something badly.
The same case as an explicit method works, so with my additional iterations it should only take longer...
I use the same for cellDisplacement and pointDisplacement as above.
But how do i reset the mesh motion best?
Is something like this correct?
Is there a structure/method to reset the whole simulation to the previous state more elegantly? I do not yet understand some aspects of time, so that could be an error ...
Any comments are much appreciated,
wavemaster is offline   Reply With Quote


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
Converting Starccm+ mesh Ladnam OpenFOAM 0 September 14, 2011 06:30
Problem of reconstructing pointVectorFields with parallel mesh motion (1.5.x) LESlie OpenFOAM 0 November 6, 2009 07:07
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
Fixed mesh method for rigid body motion philippose OpenFOAM 1 January 12, 2009 05:57
Problems with mesh motion in parallel thomas OpenFOAM Running, Solving & CFD 3 July 4, 2007 02:48

All times are GMT -4. The time now is 18:56.