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

change/increase maxCo

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2012, 06:13
Default change/increase maxCo
  #1
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 299
Rep Power: 8
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, 04:09
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,880
Rep Power: 25
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

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
GeekoCFD 32bit - The 32bit edition of GeekoCFD.
GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats.
alberto is offline   Reply With Quote

Old   February 28, 2012, 12:54
Default
  #3
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 299
Rep Power: 8
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, 12:59
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,880
Rep Power: 25
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

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
GeekoCFD 32bit - The 32bit edition of GeekoCFD.
GeekoCFD text mode - A smaller version of GeekoCFD, text-mode only, with only OpenFOAM. Available in a variety of virtual formats.
alberto 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
maxCo or whatever.. eternityboy OpenFOAM 5 July 7, 2014 09:59
bubbleFoam - behavior on finer mesh darai OpenFOAM Running, Solving & CFD 8 November 22, 2011 05:15
Problems with adjustable timestep control and maxCo Number wolle1982 OpenFOAM Running, Solving & CFD 4 July 27, 2011 05:40
MaxCo with interFoam sega OpenFOAM Running, Solving & CFD 2 January 6, 2009 04:05


All times are GMT -4. The time now is 03:46.