OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

MULES.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2007 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Global
00026     MULES
00027 
00028 Description
00029     MULES: Multidimensional universal limiter with explicit solution.
00030 
00031     Solve a convective-only transport equation using an explicit universal
00032     multi-dimensional limiter.
00033 
00034     Parameters are the variable to solve, the normal convective flux and the
00035     actual explicit flux of the variable which is also used to return limited
00036     flux used in the bounded-solution.
00037 
00038 SourceFiles
00039     MULES.C
00040 
00041 \*---------------------------------------------------------------------------*/
00042 
00043 #ifndef MULES_H
00044 #define MULES_H
00045 
00046 #include "volFields.H"
00047 #include "surfaceFieldsFwd.H"
00048 #include "dimensionedTypes.H"
00049 #include "primitiveFieldsFwd.H"
00050 #include "zero.H"
00051 
00052 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00053 
00054 namespace Foam
00055 {
00056 
00057 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00058 
00059 namespace MULES
00060 {
00061 
00062 template<class SpType, class SuType>
00063 void explicitSolve
00064 (
00065     volScalarField& psi,
00066     const surfaceScalarField& phiBD,
00067     surfaceScalarField& phiPsi,
00068     const SpType& Sp,
00069     const SuType& Su,
00070     const scalar psiMax,
00071     const scalar psiMin
00072 );
00073 
00074 void explicitSolve
00075 (
00076     volScalarField& psi,
00077     const surfaceScalarField& phiBD,
00078     surfaceScalarField& phiPsi,
00079     const scalar psiMax,
00080     const scalar psiMin
00081 );
00082 
00083 template<class SpType, class SuType>
00084 void explicitSolve01
00085 (
00086     volScalarField& psi,
00087     const surfaceScalarField& phi,
00088     surfaceScalarField& phiPsi,
00089     const SpType& Sp,
00090     const SuType& Su
00091 );
00092 
00093 void explicitSolve01
00094 (
00095     volScalarField& gamma,
00096     const surfaceScalarField& phi,
00097     surfaceScalarField& phiCorr
00098 );
00099 
00100 template<class SpType, class SuType>
00101 void implicitSolve01
00102 (
00103     volScalarField& gamma,
00104     const surfaceScalarField& phi,
00105     const dimensionedScalar& Dpsi,
00106     surfaceScalarField& phiCorr,
00107     const SpType& Sp,
00108     const SuType& Su
00109 );
00110 
00111 void implicitSolve01
00112 (
00113     volScalarField& gamma,
00114     const surfaceScalarField& phi,
00115     const dimensionedScalar& Dpsi,
00116     surfaceScalarField& phiCorr
00117 );
00118 
00119 template<class SpType, class SuType>
00120 void limiter
00121 (
00122     scalarField& allLambda,
00123     const volScalarField& psi,
00124     const surfaceScalarField& phiBD,
00125     const surfaceScalarField& phiCorr,
00126     const SpType& Sp,
00127     const SuType& Su,
00128     const scalar psiMax,
00129     const scalar psiMin
00130 );
00131 
00132 } // End namespace MULES
00133 
00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00135 
00136 } // End namespace Foam
00137 
00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00139 
00140 #ifdef NoRepository
00141 #   include "MULESTemplates.C"
00142 #endif
00143 
00144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00145 
00146 #endif
00147 
00148 // ************************************************************************* //
Copyright © 2000-2007 OpenCFD Ltd