multivariateIndependentScheme.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::multivariateIndependentScheme
26 
27 Description
28  Generic multi-variate discretisation scheme class for which any of the
29  NVD, CNVD or NVDV schemes may be selected for each variable and applied
30  independently.
31 
32  This is equivalent to using separate "div" terms and schemes for each
33  variable/equation.
34 
35 SourceFiles
36  multivariateIndependentScheme.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef multivariateIndependentScheme_H
41 #define multivariateIndependentScheme_H
42 
45 #include "surfaceFields.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class multivariateIndependentScheme Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<class Type>
58 :
60 {
61  // Private data
62 
65 
66 
67  // Private Member Functions
68 
69  //- Disallow default bitwise copy construct
71 
72  //- Disallow default bitwise assignment
74 
75 
76 public:
77 
78  //- Runtime type information
79  TypeName("multivariateIndependent");
80 
81 
82  // Constructors
83 
84  //- Construct for field, faceFlux and Istream
86  (
87  const fvMesh& mesh,
90  const surfaceScalarField& faceFlux,
91  Istream& schemeData
92  );
93 
94 
95  // Member Operators
96 
98  (
100  ) const
101  {
103  (
104  faceFlux_.mesh(),
105  faceFlux_,
106  schemes_.lookup(field.name())
107  );
108  }
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #ifdef NoRepository
120 #endif
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
Foam::multivariateIndependentScheme::TypeName
TypeName("multivariateIndependent")
Runtime type information.
Foam::multivariateIndependentScheme
Generic multi-variate discretisation scheme class for which any of the NVD, CNVD or NVDV schemes may ...
Definition: multivariateIndependentScheme.H:56
multivariateIndependentScheme.C
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::multivariateIndependentScheme::operator=
void operator=(const multivariateIndependentScheme &)
Disallow default bitwise assignment.
Foam::dictionary::lookup
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Definition: dictionary.C:449
surfaceFields.H
Foam::surfaceFields.
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:57
Foam::multivariateSurfaceInterpolationScheme
Abstract base class for multi-variate surface interpolation schemes.
Definition: multivariateSurfaceInterpolationScheme.H:50
Foam::multivariateSurfaceInterpolationScheme::mesh
const fvMesh & mesh() const
Return mesh reference.
Definition: multivariateSurfaceInterpolationScheme.H:151
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::multivariateSurfaceInterpolationScheme::fields
const fieldTable & fields() const
Return fields to be interpolated.
Definition: multivariateSurfaceInterpolationScheme.H:157
Foam::multivariateIndependentScheme::faceFlux_
const surfaceScalarField & faceFlux_
Definition: multivariateIndependentScheme.H:63
multivariateSurfaceInterpolationScheme.H
Foam::surfaceInterpolationScheme::New
static tmp< surfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
Definition: surfaceInterpolationScheme.C:44
Foam::multivariateIndependentScheme::schemes_
dictionary schemes_
Definition: multivariateIndependentScheme.H:62
Foam::multivariateIndependentScheme::multivariateIndependentScheme
multivariateIndependentScheme(const multivariateIndependentScheme &)
Disallow default bitwise copy construct.
limitedSurfaceInterpolationScheme.H
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::multivariateSurfaceInterpolationScheme::fieldTable
fieldTable
Definition: multivariateSurfaceInterpolationScheme.H:58