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-2016 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 
63  dictionary schemes_;
64  const surfaceScalarField& faceFlux_;
65 
66 
67  // Private Member Functions
68 
69  //- Disallow default bitwise copy construct
71 
72  //- Disallow default bitwise assignment
73  void operator=(const multivariateIndependentScheme&);
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::surfaceFields.
TypeName("multivariateIndependent")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
const fvMesh & mesh() const
Return mesh reference.
Generic multi-variate discretisation scheme class for which any of the NVD, CNVD or NVDV schemes may ...
static tmp< surfaceInterpolationScheme< Type > > New(const fvMesh &mesh, Istream &schemeData)
Return new tmp interpolation scheme.
const Mesh & mesh() const
Return mesh.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Abstract base class for multi-variate surface interpolation schemes.
const fieldTable & fields() const
Return fields to be interpolated.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Definition: dictionary.C:451