From 39b30e2429ec66efe5600d6ffed2ca08259937a7 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 18 Apr 2011 15:05:30 +0100 Subject: [PATCH] ENH: Updated bubbleFoam solver and tutorial --- .../multiphase/bubbleFoam/bubbleFoam.C | 39 ++++++++++++------- .../multiphase/bubbleFoam/createFields.H | 2 +- .../solvers/multiphase/bubbleFoam/pEqn.H | 10 +++-- .../bubbleFoam/readBubbleFoamControls.H | 5 +-- .../bubbleFoam/bubbleColumn/system/fvSolution | 20 ++++++---- 5 files changed, 47 insertions(+), 29 deletions(-) diff --git a/applications/solvers/multiphase/bubbleFoam/bubbleFoam.C b/applications/solvers/multiphase/bubbleFoam/bubbleFoam.C index 8c509ab72c..d028a1376f 100644 --- a/applications/solvers/multiphase/bubbleFoam/bubbleFoam.C +++ b/applications/solvers/multiphase/bubbleFoam/bubbleFoam.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -34,6 +34,7 @@ Description #include "nearWallDist.H" #include "wallFvPatch.H" #include "Switch.H" +#include "pimpleControl.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -47,6 +48,8 @@ int main(int argc, char *argv[]) #include "createFields.H" #include "initContinuityErrs.H" + pimpleControl pimple(mesh); + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "\nStarting time loop\n" << endl; @@ -58,26 +61,32 @@ int main(int argc, char *argv[]) #include "readBubbleFoamControls.H" #include "CourantNo.H" - #include "alphaEqn.H" - #include "liftDragCoeffs.H" - #include "UEqns.H" - - // --- PISO loop - - for (int corr=0; corr