buoyantSimpleFoam.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include "fvCFD.H"
00034 #include "basicPsiThermo.H"
00035 #include "RASModel.H"
00036 #include "fixedGradientFvPatchFields.H"
00037
00038
00039
00040 int main(int argc, char *argv[])
00041 {
00042 #include "setRootCase.H"
00043 #include "createTime.H"
00044 #include "createMesh.H"
00045 #include "readGravitationalAcceleration.H"
00046 #include "createFields.H"
00047 #include "initContinuityErrs.H"
00048
00049
00050
00051 Info<< "\nStarting time loop\n" << endl;
00052
00053 while (runTime.loop())
00054 {
00055 Info<< "Time = " << runTime.timeName() << nl << endl;
00056
00057 #include "readSIMPLEControls.H"
00058 #include "initConvergenceCheck.H"
00059
00060 p.storePrevIter();
00061 rho.storePrevIter();
00062
00063
00064 {
00065 #include "UEqn.H"
00066 #include "hEqn.H"
00067 #include "pEqn.H"
00068 }
00069
00070 turbulence->correct();
00071
00072 runTime.write();
00073
00074 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
00075 << " ClockTime = " << runTime.elapsedClockTime() << " s"
00076 << nl << endl;
00077
00078 #include "convergenceCheck.H"
00079 }
00080
00081 Info<< "End\n" << endl;
00082
00083 return 0;
00084 }
00085
00086
00087
Copyright © 2000-2009 OpenCFD Ltd