OpenFOAM logo
Open Source CFD Toolkit

faNVDscheme.H File Reference


Detailed Description

View faNVDscheme.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 the weighting-factors based on the NVD
(Normalised Variable Diagram).
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 edges as well as edges of coupled patches
(e.g. processor-processor patches). The weight function is supplied the
central-differencing weighting factor, the edge-flux, the cell and edge
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 faNVDscheme.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  faNVDscheme

Defines

#define makeNVDedgeInterpolationTypeScheme(SS, WEIGHT, NAME, TYPE)
#define makeNVDedgeInterpolationScheme(SS, WEIGHT, NAME)


Define Documentation

#define makeNVDedgeInterpolationScheme SS,
WEIGHT,
NAME   ) 
 

Value:

\
makeNVDedgeInterpolationTypeScheme(SS, WEIGHT, NAME, scalar)                   \
makeNVDedgeInterpolationTypeScheme(SS, WEIGHT, NAME, vector)                   \
makeNVDedgeInterpolationTypeScheme(SS, WEIGHT, NAME, tensor)

Definition at line 187 of file faNVDscheme.H.

#define makeNVDedgeInterpolationTypeScheme SS,
WEIGHT,
NAME,
TYPE   ) 
 

Value:

\
typedef faNVDscheme<TYPE, WEIGHT> faNVDscheme##TYPE##WEIGHT_;                  \
defineTemplateTypeNameAndDebugWithName(faNVDscheme##TYPE##WEIGHT_, NAME, 0);   \
                                                                               \
edgeInterpolationScheme<TYPE>::addMeshConstructorToTable                       \
<faNVDscheme<TYPE, WEIGHT> >                                                   \
    add##SS##TYPE##MeshConstructorToTable_;                                    \
                                                                               \
edgeInterpolationScheme<TYPE>::addMeshFluxConstructorToTable                   \
<faNVDscheme<TYPE, WEIGHT> >                                                   \
    add##SS##TYPE##MeshFluxConstructorToTable_;

Definition at line 173 of file faNVDscheme.H.

For further information go to www.openfoam.org