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

why adjustableRunTime doesn't work in sonicFoam?

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

Like Tree1Likes
  • 1 Post By chegdan

Reply
 
LinkBack Thread Tools Display Modes
Old   February 11, 2013, 16:05
Default why adjustableRunTime doesn't work in sonicFoam?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
my controlDict is as below:
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     rhoPimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         .02;//0.020708089

deltaT          5.6e-9;

writeControl    adjustableRunTime;

writeInterval   .000001;

purgeWrite      0;

writeFormat     binary;

writePrecision  10;

writeCompression on;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           0.1;

maxDeltaT       .0001;

libs ( "libOpenFOAM.so" "libgroovyBC.so" ) ;
but courant goes high as 20...50 and only decrease when i lessen deltaT or maxdeltaT.does not this solver support this feature to control CFL number?how can i modify it to involve it?
immortality is offline   Reply With Quote

Old   February 11, 2013, 17:22
Default
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 546
Rep Power: 18
chegdan will become famous soon enough
sonicFoam does not have this currently implemented. To add this, try looking at

Courant number

or, you could look at the transient solvers that have the ability to adjust time-step size based on courant number. For inspiration, look at interFoam, rhoPimpleFoam, or bubbleFoam. You are looking at the lines

Code:
    
.
.
.
        #include "setInitialDeltaT.H"
.
.
.

        #include "setDeltaT.H"
.
.
.
and their placement before or within the time-loop after the Courant number is determined for the flow. Look in the directory

Code:
$FOAM_SRC/finiteVolume/cfdTools/general/include
for the source of these files. Good luck.
immortality likes this.
__________________
Dan

Find me on twitter @dancombest and LinkedIn

Last edited by chegdan; February 11, 2013 at 17:24. Reason: more info
chegdan is offline   Reply With Quote

Old   March 15, 2013, 02:19
Post Hello,
  #3
Senior Member
 
Tushar Chourushi
Join Date: Jul 2009
Location: IIT-Indore, India
Posts: 319
Blog Entries: 1
Rep Power: 9
Tushar@cfd is on a distinguished road
Regarding the solvers..

Why do we need both together "setinitialDeltaT.H" & "setDeltaT.H" ?

Please correct me if I am wrong.

Thanks in advance.
Tushar@cfd 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
Error trying to run steady-state sonicFoam dancfd OpenFOAM Running, Solving & CFD 2 February 12, 2013 04:15
sonicFOAM for an airfoil error inginer OpenFOAM 6 September 14, 2010 05:31
Crash when using sonicFoam Horus OpenFOAM 1 June 16, 2010 12:57
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 12:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 21:03


All times are GMT -4. The time now is 04:55.