Removed unneeded lib dependency from mdInitialise
[foam-extend-3.2.git] / applications / solvers / multiphase / interMixingFoam / interMixingFoam.C
blobc21f70c905b4f1deef54de831d723cef706e1839
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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, write to the Free Software Foundation,
23     Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 Application
26     interMixingFoam
28 Description
29     Solver for 3 incompressible fluids, two of which are miscible,
30     using a VOF method to capture the interface.
32 \*---------------------------------------------------------------------------*/
34 #include "fvCFD.H"
35 #include "MULES.H"
36 #include "subCycle.H"
37 #include "threePhaseMixture.H"
38 #include "threePhaseInterfaceProperties.H"
39 #include "turbulenceModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 int main(int argc, char *argv[])
45 #   include "setRootCase.H"
46 #   include "createTime.H"
47 #   include "createMesh.H"
48 #   include "readGravitationalAcceleration.H"
49 #   include "readPISOControls.H"
50 #   include "initContinuityErrs.H"
51 #   include "createFields.H"
52 #   include "readTimeControls.H"
53 #   include "CourantNo.H"
54 #   include "setInitialDeltaT.H"
55 #   include "correctPhi.H"
57     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
59     Info<< "\nStarting time loop\n" << endl;
61     while (runTime.run())
62     {
63 #       include "readPISOControls.H"
64 #       include "readTimeControls.H"
65 #       include "CourantNo.H"
66 #       include "setDeltaT.H"
68         runTime++;
70         Info<< "Time = " << runTime.timeName() << nl << endl;
72         threePhaseProperties.correct();
74 #       include "alphaEqnsSubCycle.H"
76 #       define twoPhaseProperties threePhaseProperties
77 #       include "UEqn.H"
79         // --- PISO loop
80         for (int corr = 0; corr < nCorr; corr++)
81         {
82 #           include "pEqn.H"
83         }
85 #       include "continuityErrs.H"
87         turbulence->correct();
89         runTime.write();
91         Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
92             << "  ClockTime = " << runTime.elapsedClockTime() << " s"
93             << nl << endl;
94     }
96     Info<< "\n end \n";
98     return(0);
102 // ************************************************************************* //