00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 2008-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software: you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>. 00023 00024 Application 00025 buoyantBoussinesqSimpleFoam 00026 00027 Description 00028 Steady-state solver for buoyant, turbulent flow of incompressible fluids 00029 00030 Uses the Boussinesq approximation: 00031 \f[ 00032 rho_{eff} = 1 - beta(T - T_{ref}) 00033 \f] 00034 00035 where: 00036 \f$ rho_{eff} \f$ = the effective (driving) density 00037 beta = thermal expansion coefficient [1/K] 00038 T = temperature [K] 00039 \f$ T_{ref} \f$ = reference temperature [K] 00040 00041 Valid when: 00042 \f[ 00043 rho_{eff} << 1 00044 \f] 00045 00046 Usage 00047 - buoyantBoussinesqSimpleFoam [OPTION] 00048 00049 @param -case <dir> \n 00050 Specify the case directory 00051 00052 @param -parallel \n 00053 Run the case in parallel 00054 00055 @param -help \n 00056 Display short usage message 00057 00058 @param -doc \n 00059 Display Doxygen documentation page 00060 00061 @param -srcDoc \n 00062 Display source code 00063 00064 \*---------------------------------------------------------------------------*/ 00065 00066 #include <finiteVolume/fvCFD.H> 00067 #include <incompressibleTransportModels/singlePhaseTransportModel.H> 00068 #include <incompressibleRASModels/RASModel.H> 00069 00070 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00071 00072 int main(int argc, char *argv[]) 00073 { 00074 #include <OpenFOAM/setRootCase.H> 00075 #include <OpenFOAM/createTime.H> 00076 #include <OpenFOAM/createMesh.H> 00077 #include <finiteVolume/readGravitationalAcceleration.H> 00078 #include "createFields.H" 00079 #include <finiteVolume/initContinuityErrs.H> 00080 00081 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00082 00083 Info<< "\nStarting time loop\n" << endl; 00084 00085 while (runTime.loop()) 00086 { 00087 Info<< "Time = " << runTime.timeName() << nl << endl; 00088 00089 #include <finiteVolume/readSIMPLEControls.H> 00090 #include "initConvergenceCheck.H" 00091 00092 p_rgh.storePrevIter(); 00093 00094 // Pressure-velocity SIMPLE corrector 00095 { 00096 #include "UEqn.H" 00097 #include "TEqn.H" 00098 #include "pEqn.H" 00099 } 00100 00101 turbulence->correct(); 00102 00103 runTime.write(); 00104 00105 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s" 00106 << " ClockTime = " << runTime.elapsedClockTime() << " s" 00107 << nl << endl; 00108 00109 #include "convergenceCheck.H" 00110 } 00111 00112 Info<< "End\n" << endl; 00113 00114 return 0; 00115 } 00116 00117 00118 // ************************ vim: set sw=4 sts=4 et: ************************ //