ENH: patchCloud: return pTraits<Type>::max for unfound points
[OpenFOAM-1.7.x.git] / applications / solvers / multiphase / multiphaseInterFoam / MRFMultiphaseInterFoam / MRFMultiphaseInterFoam.C
blobfee2292746a0f2989fef83651e98025ddfa8eccc
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by
13     the Free Software Foundation, either version 3 of the License, or
14     (at your option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
24 Application
25     MRFMultiphaseInterFoam
27 Description
28     Solver for n incompressible fluids which captures the interfaces and
29     includes surface-tension and contact-angle effects for each phase.
31     Turbulence modelling is generic, i.e. laminar, RAS or LES may be selected.
33 \*---------------------------------------------------------------------------*/
35 #include "fvCFD.H"
36 #include "multiphaseMixture.H"
37 #include "turbulenceModel.H"
38 #include "MRFZones.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 int main(int argc, char *argv[])
44     #include "setRootCase.H"
45     #include "createTime.H"
46     #include "createMesh.H"
47     #include "readPISOControls.H"
48     #include "initContinuityErrs.H"
49     #include "createFields.H"
50     #include "createMRFZones.H"
51     #include "readTimeControls.H"
52     #include "correctPhi.H"
53     #include "CourantNo.H"
54     #include "setInitialDeltaT.H"
56     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58     Info<< "\nStarting time loop\n" << endl;
60     while (runTime.run())
61     {
62         #include "readPISOControls.H"
63         #include "readTimeControls.H"
64         #include "CourantNo.H"
65         #include "alphaCourantNo.H"
66         #include "setDeltaT.H"
68         runTime++;
70         Info<< "Time = " << runTime.timeName() << nl << endl;
72         mixture.solve();
73         rho = mixture.rho();
74         #include "zonePhaseVolumes.H"
76         #include "UEqn.H"
78         // --- PISO loop
79         for (int corr=0; corr<nCorr; corr++)
80         {
81             #include "pEqn.H"
82         }
84         turbulence->correct();
86         runTime.write();
88         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
89             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
90             << nl << endl;
91     }
93     Info<< "End\n" << endl;
95     return 0;
99 // ************************************************************************* //