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

why adjustableRunTime doesn't work in sonicFoam?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By chegdan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2013, 15:05
Default why adjustableRunTime doesn't work in sonicFoam?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 16:22
Default
  #2
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
sonicFoam does not have this currently implemented. To add this, try looking at

http://www.cfd-online.com/Forums/ope...nt-number.html

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.

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

Old   March 15, 2013, 01:19
Post Hello,
  #3
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
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


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
Error trying to run steady-state sonicFoam dancfd OpenFOAM Running, Solving & CFD 2 February 12, 2013 03: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 00:36.