CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   An observation in interFoam code (http://www.cfd-online.com/Forums/openfoam-solving/60589-observation-interfoam-code.html)

liu May 27, 2005 22:53

The source code: ....... in
 
The source code:
.......
int main(int argc, char *argv[])
{

# include "setRootCase.H"
# include "createTime.H"
# include "createMovingMesh.H"
# include "readEnvironmentalProperties.H"
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "setInitialDeltaT.H"
# include "correctPhi.H"

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Info<< "\nStarting time loop\n" << endl;

while (runTime.run())
{
# include "readPISOControls.H"
# include "readTimeControls.H"

.......

Here, these two includes are not necessary because they have already been included before. Not a sever bug though.

niklas May 28, 2005 02:18

Hmmm... Not a bug at all in
 
Hmmm...

Not a bug at all in fact.

They are included in the while-loop to allow for
varying the piso and time controls.

but if you feel like keeping them constant they can be excluded.

N


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