Using adjustableTimeStep in pisoFoam
Hi,
I've found a couple of pages online documenting where to add code in the pisoFoam solver code such that using: Code:
adjustTimeStep yes; 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 |
Update
If it helps, I *think* I've put the right code in the right place within pisoFoam.C, thanks to this tutorial: http://www.idurun.com/?p=371
This involved me editing the pisoFoam.C file using Code:
sudo gedit pisoFoam.C Code:
wmake Code:
mkdir: cannot create directory `linux64GccDPOpt': Permission denied Thanks |
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) After: # 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: interpolationSchemes { default linear; . . . } Enjoy!! |
Quote:
Quote:
*EDIT: turns out another header file was missing. this is #include "createTimeControls.H" adding that in solved the problem. Thank you. Source: https://www.cfd-online.com/Forums/op...-solver-c.html |
Quote:
“the variable was not declared” is tell me that it was not declared before to use it. so i added the #include "createTimeControls.H" after #include "createControl.H", it works well. p.s of-4.0 |
For future reference, pimpleFoam can be run essentially as pisoFoam by setting nOuterCorrectors to 1. This alleviates any coding problem. pimpleFoam supports adjustable timestep.
Caelan |
Quote:
In order to make it possible to use adjustable time step in pisoFoam, in OpenFOAM v2006, follow these steps: Code:
mkdir -p $WM_PROJECT_USER_DIR/solvers/incompressible Code:
... Code:
wclean Ali |
Small correction
Quote:
|
It gives me following error: Any idea?
Code:
/home/kano/OpenFOAM/OpenFOAM-10/src/finiteVolume/lnInclude/setDeltaT.H: In function int main(int, char**): |
Quote:
|
Quote:
|
Quote:
Code:
FOAM_APPBIN Code:
FOAM_USER_APPBIN Code:
mv pisoFoam myPisoFoam |
Hi,
I am trying to implement adjustTimeStep in the solver shallowWaterFoam in openFOAM-10, following the instruction from the previous posts. I do the following Code:
mkdir -p $WM_PROJECT_USER_DIR/solvers/incompressible Code:
#include "fvCFD.H" Code:
wclean Code:
/opt/openfoam10/src/finiteVolume/lnInclude/setDeltaT.H: In function ‘int main(int, char**)’: Code:
FOAM_APPBIN Code:
FOAM_USER_APPBIN Thank you! |
All times are GMT -4. The time now is 17:31. |