multivariateIndependentScheme.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 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 public:
68 
69  //- Runtime type information
70  TypeName("multivariateIndependent");
71 
72 
73  // Constructors
74 
75  //- Construct for field, faceFlux and Istream
77  (
78  const fvMesh& mesh,
81  const surfaceScalarField& faceFlux,
82  Istream& schemeData
83  );
84 
85  //- Disallow default bitwise copy construction
87  (
89  ) = delete;
90 
91 
92  // Member Operators
93 
94  //- Disallow default bitwise assignment
95  void operator=(const multivariateIndependentScheme&) = delete;
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.
multivariateIndependentScheme(const fvMesh &mesh, const typename multivariateSurfaceInterpolationScheme< Type >::fieldTable &fields, const surfaceScalarField &faceFlux, Istream &schemeData)
Construct for field, faceFlux and Istream.
TypeName("multivariateIndependent")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
const fieldTable & fields() const
Return fields to be interpolated.
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.
rDeltaTY field()
A class for managing temporary objects.
Definition: PtrList.H:53
void operator=(const multivariateIndependentScheme &)=delete
Disallow default bitwise assignment.
Namespace for OpenFOAM.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Definition: dictionary.C:844