OpenFOAM logo
Open Source CFD Toolkit

LimitedScheme.H File Reference


Detailed Description

View LimitedScheme.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description

Class to create NVD/TVD limited weighting-factors.
The particular differencing scheme class is supplied as a template argument,
the weight function of which is called by the weight function of this class
for the internal faces as well as faces of coupled patches
(e.g. processor-processor patches). The weight function is supplied the
central-differencing weighting factor, the face-flux, the cell and face
gradients (from which the normalised variable distribution may be created)
and the cell centre distance.

This code organisation is both neat and efficient, allowing for convenient
implementation of new schemes to run on parallelised cases.

Source files

Definition in file LimitedScheme.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  LimitedScheme

Defines

#define makeLimitedSurfaceInterpolationTypeScheme(SS, LIMITER, NVDTVD, LIMFUNC, TYPE)
#define makeLimitedSurfaceInterpolationScheme(SS, LIMITER)
#define makeLimitedVSurfaceInterpolationScheme(SS, LIMITER)   makeLimitedSurfaceInterpolationTypeScheme(SS##V,LIMITER,NVDVTVDV,null,vector)
#define makeLLimitedSurfaceInterpolationTypeScheme(SS, LLIMITER, LIMITER, NVDTVD, LIMFUNC, TYPE)


Define Documentation

#define makeLimitedSurfaceInterpolationScheme SS,
LIMITER   ) 
 

Value:

\
makeLimitedSurfaceInterpolationTypeScheme(SS,LIMITER,NVDTVD,magSqr,scalar)     \
makeLimitedSurfaceInterpolationTypeScheme(SS,LIMITER,NVDTVD,magSqr,vector)     \
makeLimitedSurfaceInterpolationTypeScheme(SS,LIMITER,NVDTVD,magSqr,tensor)

Definition at line 177 of file LimitedScheme.H.

#define makeLimitedSurfaceInterpolationTypeScheme SS,
LIMITER,
NVDTVD,
LIMFUNC,
TYPE   ) 
 

Value:

\
typedef LimitedScheme<TYPE, LIMITER<NVDTVD>, limitFuncs::LIMFUNC>              \
    LimitedScheme##TYPE##LIMITER##NVDTVD##LIMFUNC##_;                          \
defineTemplateTypeNameAndDebugWithName                                         \
    (LimitedScheme##TYPE##LIMITER##NVDTVD##LIMFUNC##_, #SS, 0);                \
                                                                               \
surfaceInterpolationScheme<TYPE>::addMeshConstructorToTable                    \
<LimitedScheme<TYPE, LIMITER<NVDTVD>, limitFuncs::LIMFUNC> >                   \
    add##SS##LIMFUNC##TYPE##MeshConstructorToTable_;                           \
                                                                               \
surfaceInterpolationScheme<TYPE>::addMeshFluxConstructorToTable                \
<LimitedScheme<TYPE, LIMITER<NVDTVD>, limitFuncs::LIMFUNC> >                   \
    add##SS##LIMFUNC##TYPE##MeshFluxConstructorToTable_;                       \
                                                                               \
limitedSurfaceInterpolationScheme<TYPE>::addMeshConstructorToTable             \
<LimitedScheme<TYPE, LIMITER<NVDTVD>, limitFuncs::LIMFUNC> >                   \
    add##SS##LIMFUNC##TYPE##MeshConstructorToLimitedTable_;                    \
                                                                               \
limitedSurfaceInterpolationScheme<TYPE>::addMeshFluxConstructorToTable         \
<LimitedScheme<TYPE, LIMITER<NVDTVD>, limitFuncs::LIMFUNC> >                   \
    add##SS##LIMFUNC##TYPE##MeshFluxConstructorToLimitedTable_;

Definition at line 153 of file LimitedScheme.H.

#define makeLimitedVSurfaceInterpolationScheme SS,
LIMITER   )     makeLimitedSurfaceInterpolationTypeScheme(SS##V,LIMITER,NVDVTVDV,null,vector)
 

Definition at line 184 of file LimitedScheme.H.

#define makeLLimitedSurfaceInterpolationTypeScheme SS,
LLIMITER,
LIMITER,
NVDTVD,
LIMFUNC,
TYPE   ) 
 

Value:

\
typedef LimitedScheme<TYPE, LLIMITER<LIMITER<NVDTVD> >, limitFuncs::LIMFUNC>   \
    LimitedScheme##TYPE##LLIMITER##LIMITER##NVDTVD##LIMFUNC##_;                \
defineTemplateTypeNameAndDebugWithName                                         \
    (LimitedScheme##TYPE##LLIMITER##LIMITER##NVDTVD##LIMFUNC##_, #SS, 0);      \
                                                                               \
surfaceInterpolationScheme<TYPE>::addMeshConstructorToTable                    \
<LimitedScheme<TYPE, LLIMITER<LIMITER<NVDTVD> >, limitFuncs::LIMFUNC> >        \
    add##SS##LIMFUNC##TYPE##MeshConstructorToTable_;                           \
                                                                               \
surfaceInterpolationScheme<TYPE>::addMeshFluxConstructorToTable                \
<LimitedScheme<TYPE, LLIMITER<LIMITER<NVDTVD> >, limitFuncs::LIMFUNC> >        \
    add##SS##LIMFUNC##TYPE##MeshFluxConstructorToTable_;                       \
                                                                               \
limitedSurfaceInterpolationScheme<TYPE>::addMeshConstructorToTable             \
<LimitedScheme<TYPE, LLIMITER<LIMITER<NVDTVD> >, limitFuncs::LIMFUNC> >        \
    add##SS##LIMFUNC##TYPE##MeshConstructorToLimitedTable_;                    \
                                                                               \
limitedSurfaceInterpolationScheme<TYPE>::addMeshFluxConstructorToTable         \
<LimitedScheme<TYPE, LLIMITER<LIMITER<NVDTVD> >, limitFuncs::LIMFUNC> >        \
    add##SS##LIMFUNC##TYPE##MeshFluxConstructorToLimitedTable_;

Definition at line 188 of file LimitedScheme.H.

For further information go to www.openfoam.org