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

change/increase maxCo

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2012, 07:13
Default change/increase maxCo
  #1
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi all,

how can I change the maxCo (controlDict) during a calculation.

I want to start my computation with a low maxCo value. And after some iterations change it and increase it a little bit and so on.

Is there an easy way to do this?

Regards,
Stephane.
openfoam_user is offline   Reply With Quote

Old   February 28, 2012, 05:09
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
You can change it directly by editing the controlDict. A default installation of OpenFOAM should detect the change at the next time-step.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   February 28, 2012, 13:54
Default
  #3
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi Alberto,

I know that I can modify the controlDict file during the computation.

But I would prefer to have something like a script in order to leave my case running in batch mode ?

Don't know if there is a nice way to do it.

Regards,
Stéphane.
openfoam_user is offline   Reply With Quote

Old   February 28, 2012, 13:59
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by openfoam_user View Post
Hi Alberto,

I know that I can modify the controlDict file during the computation.

But I would prefer to have something like a script in order to leave my case running in batch mode ?

Don't know if there is a nice way to do it.

Regards,
Stéphane.
You could write a script to replace the line containing maxCo with the line containing the new maxCo, as long as a complete controlDict is always present on the disk during the operation (if not, the trun would fail).
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto 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
Problems with adjustable timestep control and maxCo Number wolle1982 OpenFOAM Running, Solving & CFD 5 September 24, 2015 11:07
maxCo or whatever.. eternityboy OpenFOAM 5 July 7, 2014 10:59
bubbleFoam - behavior on finer mesh darai OpenFOAM Running, Solving & CFD 8 November 22, 2011 06:15
MaxCo with interFoam sega OpenFOAM Running, Solving & CFD 2 January 6, 2009 05:05


All times are GMT -4. The time now is 12:32.