twoPhaseEulerFoam:frictionalStressModel/Schaeffer: Correct mut on processor boundaries
[OpenFOAM-1.7.x.git] / applications / solvers / multiphase / multiphaseInterFoam / multiphaseInterFoam.C
blob39a1761574e829d3965a596d206c4aa6630628ec
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     multiphaseInterFoam
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"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 int main(int argc, char *argv[])
43     #include "setRootCase.H"
44     #include "createTime.H"
45     #include "createMesh.H"
46     #include "readPISOControls.H"
47     #include "initContinuityErrs.H"
48     #include "createFields.H"
49     #include "readTimeControls.H"
50     #include "correctPhi.H"
51     #include "CourantNo.H"
52     #include "setInitialDeltaT.H"
54     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56     Info<< "\nStarting time loop\n" << endl;
58     while (runTime.run())
59     {
60         #include "readPISOControls.H"
61         #include "readTimeControls.H"
62         #include "CourantNo.H"
63         #include "alphaCourantNo.H"
64         #include "setDeltaT.H"
66         runTime++;
68         Info<< "Time = " << runTime.timeName() << nl << endl;
70         mixture.solve();
71         rho = mixture.rho();
73         #include "UEqn.H"
75         // --- PISO loop
76         for (int corr=0; corr<nCorr; corr++)
77         {
78             #include "pEqn.H"
79         }
81         turbulence->correct();
83         runTime.write();
85         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
86             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
87             << nl << endl;
88     }
90     Info<< "End\n" << endl;
92     return 0;
96 // ************************************************************************* //