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

Stop iteration and continuation of the process

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 1, 2007, 14:59
Default Dear all, I would like to k
  #1
New Member
 
Marta Pajon
Join Date: Mar 2009
Posts: 21
Rep Power: 8
martapajon is on a distinguished road
Dear all,

I would like to know if it is possible to let OpenFoam calculate for one single iteration, stop the program and then start the program to calculate the next iteration.

I am involve in a research in which we will use OpenFOAM but I haven't really start with the practise within this software. But I need to clirify some ideas in order to develop the plans for the research.

I hope you can answer this question that, even though it was not interesting for you, the asnwer I suppose is very easy for you and fast.

Thank you very much for your help
martapajon is offline   Reply With Quote

Old   November 1, 2007, 15:54
Default - set your startTime to latest
  #2
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
- set your startTime to latestTime in the system/controlDict.

- modify your solver to modify the endTime. E.g. to set the endTime at 0.1s past the startTime:

scalar endTime = runTime.startTime().value();
runTime.setEndTime(endTime + 1E-1);
Info<< "Reset endTime from " << endTime
<< " to " << runTime.endTime().value()
<< endl;


- instead of modifying the solver source code you could write a functionObject that does this for you.
mattijs is offline   Reply With Quote

Old   November 5, 2007, 06:51
Default Thank you very much Mattijs fo
  #3
New Member
 
Marta Pajon
Join Date: Mar 2009
Posts: 21
Rep Power: 8
martapajon is on a distinguished road
Thank you very much Mattijs for your answer.

But, please let me know if I am wrong because I am beginnier with this, with the solution that you are explaining me, what you get is to stop the iteration at the begin, e.g. at 0.1s, but what I wanted is to be able to continue the iteration after stoping it ( I want to be able to analyze the data and to continue the iteration if the data are not what I want). Is it possible with that or in some other way?

Many thanks again
martapajon is offline   Reply With Quote

Old   November 5, 2007, 16:06
Default Search for latestTime in the m
  #4
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
Search for latestTime in the manual.
mattijs 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
How to stop bproperlyb a job openfoam_user OpenFOAM Running, Solving & CFD 7 October 13, 2008 02:36
Stop without res? Camilo Costa CFX 5 April 17, 2008 22:48
How to stop iteration with TUI? sophie FLUENT 4 November 23, 2006 06:18
Stop solution Joung Lee FLUENT 0 October 14, 2005 12:18
CEL CONTINUATION Camilo Costa CFX 10 September 7, 2005 08:00


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