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

adjusting the maxCo during solution

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

Like Tree1Likes
  • 1 Post By piu58

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2018, 07:26
Default adjusting the maxCo during solution
  #1
New Member
 
javad haqqani
Join Date: Dec 2017
Posts: 16
Rep Power: 8
maksjood is on a distinguished road
Hi. I want for the maxCo to change within the solve due to some criterion. How that can be done?

I already tried just simply assigning a value to it with a line

maxCo=something;

within the .C file; but it didn't work.
maksjood is offline   Reply With Quote

Old   June 9, 2018, 12:21
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You have to set it in system/controlDict

The line
Code:
writeControl    adjustableRunTime;
allows changes during runtime, and you may set the value in the line
Code:
maxCo           0.3;
to something different while the simulation is running.

It is often useful to start with a low value vor maxCo and inreasing it, when the simulated flow gets stable.
maksjood likes this.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   June 10, 2018, 05:30
Default
  #3
New Member
 
javad haqqani
Join Date: Dec 2017
Posts: 16
Rep Power: 8
maksjood is on a distinguished road
Thanks; but I need it to change programmatically (not by me). As you mentioned, I want it to increase and decrease duo to some criteria.
maksjood is offline   Reply With Quote

Reply

Tags
adjustable time-step, maxco

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
grid dependancy gueynard a. Main CFD Forum 19 June 27, 2014 21:22
Why 3D solid-pore geometry showing diverged solution? Sargam05 OpenFOAM 0 December 3, 2012 15:45
Analytic solution for 2D steady Euler equations jojo81 Main CFD Forum 0 October 15, 2012 12:05
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58
Wall functions Abhijit Tilak Main CFD Forum 6 February 5, 1999 01:16


All times are GMT -4. The time now is 15:10.