1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 OpenCFD Ltd.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 MULES: Multidimensional universal limiter with explicit solution.
31 Solve a convective-only transport equation using an explicit universal
32 multi-dimensional limiter.
34 Parameters are the variable to solve, the normal convective flux and the
35 actual explicit flux of the variable which is also used to return limited
36 flux used in the bounded-solution.
41 \*---------------------------------------------------------------------------*/
46 #include "volFields.H"
47 #include "surfaceFieldsFwd.H"
48 #include "primitiveFieldsFwd.H"
49 #include "zeroField.H"
52 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
62 template<class RhoType, class SpType, class SuType>
67 const surfaceScalarField& phiBD,
68 surfaceScalarField& phiPsi,
78 const surfaceScalarField& phiBD,
79 surfaceScalarField& phiPsi,
84 template<class RhoType, class SpType, class SuType>
88 volScalarField& gamma,
89 const surfaceScalarField& phi,
90 surfaceScalarField& phiCorr,
99 volScalarField& gamma,
100 const surfaceScalarField& phi,
101 surfaceScalarField& phiCorr,
106 template<class RhoType, class SpType, class SuType>
109 scalarField& allLambda,
111 const volScalarField& psi,
112 const surfaceScalarField& phiBD,
113 const surfaceScalarField& phiCorr,
118 const label nLimiterIter
121 } // End namespace MULES
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 # include "MULESTemplates.C"
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 // ************************************************************************* //