OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide 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-2009 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 "primitiveFieldsFwd.H"
00049 #include "zeroField.H"
00050 #include "oneField.H"
00051 
00052 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00053 
00054 namespace Foam
00055 {
00056 
00057 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00058 
00059 namespace MULES
00060 {
00061 
00062 template<class RhoType, class SpType, class SuType>
00063 void explicitSolve
00064 (
00065     const RhoType& rho,
00066     volScalarField& psi,
00067     const surfaceScalarField& phiBD,
00068     surfaceScalarField& phiPsi,
00069     const SpType& Sp,
00070     const SuType& Su,
00071     const scalar psiMax,
00072     const scalar psiMin
00073 );
00074 
00075 void explicitSolve
00076 (
00077     volScalarField& psi,
00078     const surfaceScalarField& phiBD,
00079     surfaceScalarField& phiPsi,
00080     const scalar psiMax,
00081     const scalar psiMin
00082 );
00083 
00084 template<class RhoType, class SpType, class SuType>
00085 void implicitSolve
00086 (
00087     const RhoType& rho,
00088     volScalarField& gamma,
00089     const surfaceScalarField& phi,
00090     surfaceScalarField& phiCorr,
00091     const SpType& Sp,
00092     const SuType& Su,
00093     const scalar psiMax,
00094     const scalar psiMin
00095 );
00096 
00097 void implicitSolve
00098 (
00099     volScalarField& gamma,
00100     const surfaceScalarField& phi,
00101     surfaceScalarField& phiCorr,
00102     const scalar psiMax,
00103     const scalar psiMin
00104 );
00105 
00106 template<class RhoType, class SpType, class SuType>
00107 void limiter
00108 (
00109     scalarField& allLambda,
00110     const RhoType& rho,
00111     const volScalarField& psi,
00112     const surfaceScalarField& phiBD,
00113     const surfaceScalarField& phiCorr,
00114     const SpType& Sp,
00115     const SuType& Su,
00116     const scalar psiMax,
00117     const scalar psiMin,
00118     const label nLimiterIter
00119 );
00120 
00121 } // End namespace MULES
00122 
00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00124 
00125 } // End namespace Foam
00126 
00127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00128 
00129 #ifdef NoRepository
00130 #   include "MULESTemplates.C"
00131 #endif
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 #endif
00136 
00137 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd