1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
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
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
29 Solver for 3 incompressible fluids, two of which are miscible,
30 using a VOF method to capture the interface.
32 \*---------------------------------------------------------------------------*/
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;
63 # include "readPISOControls.H"
64 # include "readTimeControls.H"
65 # include "CourantNo.H"
66 # include "setDeltaT.H"
70 Info<< "Time = " << runTime.timeName() << nl << endl;
72 threePhaseProperties.correct();
74 # include "alphaEqnsSubCycle.H"
76 # define twoPhaseProperties threePhaseProperties
80 for (int corr = 0; corr < nCorr; corr++)
85 # include "continuityErrs.H"
87 turbulence->correct();
91 Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
92 << " ClockTime = " << runTime.elapsedClockTime() << " s"
102 // ************************************************************************* //