CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Using adjustableTimeStep in pisoFoam

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

Like Tree1Likes
  • 1 Post By sfmoabdu

LinkBack Thread Tools Display Modes
Old   February 26, 2014, 04:33
Default Using adjustableTimeStep in pisoFoam
Join Date: Oct 2013
Posts: 51
Rep Power: 5
odellar is on a distinguished road

I've found a couple of pages online documenting where to add code in the pisoFoam solver code such that using:

adjustTimeStep  yes;

maxCo         1;

maxDeltaT    0.5;
in the controlDict file will work (as the pisoFoam doesn't originally support adjustable timestep) - but it's still not particularly clear.

For a start I don't actually know how to get to the solver.c file (which I believe is where I need to add code?)

If anyone could give me some step-by-step instructions of exactly what to do that would be much appreciated.

Thanks, Olie
odellar is offline   Reply With Quote

Old   February 26, 2014, 09:06
Default Update
Join Date: Oct 2013
Posts: 51
Rep Power: 5
odellar is on a distinguished road
If it helps, I *think* I've put the right code in the right place within pisoFoam.C, thanks to this tutorial:

This involved me editing the pisoFoam.C file using
sudo gedit pisoFoam.C
as it initially told me I don't have permission for some reason. But when I try to compile it using
I get this:

mkdir: cannot create directory `linux64GccDPOpt': Permission denied
/bin/sh: 1: cannot create linux64GccDPOpt/options: Directory nonexistent
make: *** [linux64GccDPOpt/options] Error 2
/opt/openfoam221/wmake/MakefileFiles:40: linux64GccDPOpt/options: No such file or directory
make: *** No rule to make target `linux64GccDPOpt/options'. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /opt/openfoam221/applications/solvers/incompressible/pisoFoam
Any ideas?


odellar is offline   Reply With Quote

Old   June 1, 2014, 14:06
New Member
Join Date: Feb 2014
Posts: 10
Rep Power: 5
sfmoabdu is on a distinguished road
it may be too late to reply but let me do it just for anyone will have the same problem.
adding adjustable time step to pisoFoam is not that big issue, just google the tutorial "adding temprature to icofoam" and instead of temprature you will add two headers in the pisoFoam.C (or whatever you will call it)

# include "initContinuityErrs.H"
add this:
# include "readTimeControls.H"

and after:
# include "CourantNo.H"
add this:
# include "setDeltaT.H"

and run wmake.

in system/controlDict add these lines.

adjustTimeStep on;
maxCo 0.3;

and in fvSchemes add linear as following:

default linear;

rajibroy likes this.
sfmoabdu is offline   Reply With Quote


adjusttimestep, cfl, pisofoam

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
why pisoFoam take such a long time to converge? izna OpenFOAM Running, Solving & CFD 51 October 25, 2013 02:28
Error DURING pisoFoam execution Pj. OpenFOAM Running, Solving & CFD 0 September 14, 2013 04:28
Differences in solution method for pisoFoam and buoyantBoussinesqPisoFoam mchurchf OpenFOAM 6 September 10, 2013 23:24
pisoFoam, pimpleFoam - Fluent user's questions RodriguezFatz OpenFOAM Running, Solving & CFD 0 September 4, 2013 04:26
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 18:18

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