EulerDdtScheme.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-2018 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::fv::EulerDdtScheme
26 
27 Description
28  Basic first-order Euler implicit/explicit ddt using only the current and
29  previous time-step values.
30 
31 SourceFiles
32  EulerDdtScheme.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef EulerDdtScheme_H
37 #define EulerDdtScheme_H
38 
39 #include "ddtScheme.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace fv
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class EulerDdtScheme Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 template<class Type>
56 class EulerDdtScheme
57 :
58  public ddtScheme<Type>
59 {
60  // Private Member Functions
61 
62  //- Disallow default bitwise copy construct
64 
65  //- Disallow default bitwise assignment
66  void operator=(const EulerDdtScheme&);
67 
68 
69 public:
70 
71  //- Runtime type information
72  TypeName("Euler");
73 
74 
75  // Constructors
76 
77  //- Construct from mesh
78  EulerDdtScheme(const fvMesh& mesh)
79  :
80  ddtScheme<Type>(mesh)
81  {}
82 
83  //- Construct from mesh and Istream
84  EulerDdtScheme(const fvMesh& mesh, Istream& is)
85  :
86  ddtScheme<Type>(mesh, is)
87  {}
88 
89 
90  // Member Functions
91 
92  //- Return mesh reference
93  const fvMesh& mesh() const
94  {
96  }
97 
99  (
100  const dimensioned<Type>&
101  );
102 
104  (
106  );
107 
109  (
110  const dimensionedScalar&,
112  );
113 
115  (
116  const volScalarField&,
118  );
119 
121  (
122  const volScalarField& alpha,
123  const volScalarField& rho,
125  );
126 
128  (
130  );
131 
133  (
135  );
136 
138  (
139  const dimensionedScalar&,
141  );
142 
144  (
145  const volScalarField&,
147  );
148 
150  (
151  const volScalarField& alpha,
152  const volScalarField& rho,
154  );
157 
159  (
162  );
163 
165  (
167  const fluxFieldType& phi
168  );
169 
171  (
172  const volScalarField& rho,
175  );
176 
178  (
179  const volScalarField& rho,
181  const fluxFieldType& phi
182  );
183 
185  (
187  );
188 };
189 
190 
191 template<>
193 (
196 );
197 
198 template<>
200 (
201  const volScalarField& U,
202  const surfaceScalarField& phi
203 );
204 
205 template<>
207 (
208  const volScalarField& rho,
209  const volScalarField& U,
210  const surfaceScalarField& Uf
211 );
212 
213 template<>
215 (
216  const volScalarField& rho,
217  const volScalarField& U,
218  const surfaceScalarField& phi
219 );
220 
221 
222 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
223 
224 } // End namespace fv
225 
226 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
227 
228 } // End namespace Foam
229 
230 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
231 
232 #ifdef NoRepository
233  #include "EulerDdtScheme.C"
234 #endif
235 
236 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
237 
238 #endif
239 
240 // ************************************************************************* //
surfaceScalarField & phi
TypeName("Euler")
Runtime type information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcDdt(const dimensioned< Type > &)
Generic GeometricField class.
Generic dimensioned Type class.
Abstract base class for ddt schemes.
Definition: ddtScheme.H:64
const fvMesh & mesh() const
Return mesh reference.
Definition: ddtScheme.H:135
tmp< fluxFieldType > fvcDdtPhiCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const fluxFieldType &phi)
tmp< surfaceScalarField > meshPhi(const GeometricField< Type, fvPatchField, volMesh > &)
ddtScheme< Type >::fluxFieldType fluxFieldType
labelList fv(nPoints)
autoPtr< surfaceVectorField > Uf
tmp< fluxFieldType > fvcDdtUfCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
U
Definition: pEqn.H:72
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
const fvMesh & mesh() const
Return mesh reference.
const volScalarField & psi
A class for managing temporary objects.
Definition: PtrList.H:53
Basic first-order Euler implicit/explicit ddt using only the current and previous time-step values...
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
tmp< fvMatrix< Type > > fvmDdt(const GeometricField< Type, fvPatchField, volMesh > &)
Namespace for OpenFOAM.