All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EulerD2dt2Scheme.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-2019 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::EulerD2dt2Scheme
26 
27 Description
28  First-order Euler implicit d2dt2 using the current and two previous
29  time-step values.
30 
31 SourceFiles
32  EulerD2dt2Scheme.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef EulerD2dt2Scheme_H
37 #define EulerD2dt2Scheme_H
38 
39 #include "d2dt2Scheme.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace fv
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class EulerD2dt2Scheme Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 template<class Type>
56 class EulerD2dt2Scheme
57 :
58  public fv::d2dt2Scheme<Type>
59 {
60 public:
61 
62  //- Runtime type information
63  TypeName("Euler");
64 
65 
66  // Constructors
67 
68  //- Construct from mesh
70  :
71  d2dt2Scheme<Type>(mesh)
72  {}
73 
74  //- Construct from mesh and Istream
75  EulerD2dt2Scheme(const fvMesh& mesh, Istream& is)
76  :
77  d2dt2Scheme<Type>(mesh, is)
78  {}
79 
80  //- Disallow default bitwise copy construction
81  EulerD2dt2Scheme(const EulerD2dt2Scheme&) = delete;
82 
83 
84  // Member Functions
85 
86  //- Return mesh reference
87  const fvMesh& mesh() const
88  {
90  }
91 
93  (
95  );
96 
98  (
99  const volScalarField&,
101  );
102 
104  (
106  );
107 
109  (
110  const dimensionedScalar&,
112  );
113 
115  (
116  const volScalarField&,
118  );
119 
120 
121  // Member Operators
122 
123  //- Disallow default bitwise assignment
124  void operator=(const EulerD2dt2Scheme&) = delete;
125 };
126 
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 } // End namespace fv
131 
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 
134 } // End namespace Foam
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #ifdef NoRepository
139  #include "EulerD2dt2Scheme.C"
140 #endif
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
Abstract base class for d2dt2 schemes.
Definition: d2dt2Scheme.H:64
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
Generic GeometricField class.
First-order Euler implicit d2dt2 using the current and two previous time-step values.
tmp< fvMatrix< Type > > fvmD2dt2(const GeometricField< Type, fvPatchField, volMesh > &)
TypeName("Euler")
Runtime type information.
EulerD2dt2Scheme(const fvMesh &mesh)
Construct from mesh.
labelList fv(nPoints)
const fvMesh & mesh() const
Return mesh reference.
Definition: d2dt2Scheme.H:129
void operator=(const EulerD2dt2Scheme &)=delete
Disallow default bitwise assignment.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
const fvMesh & mesh() const
Return mesh reference.
A class for managing temporary objects.
Definition: PtrList.H:53
tmp< GeometricField< Type, fvPatchField, volMesh > > fvcD2dt2(const GeometricField< Type, fvPatchField, volMesh > &)
Namespace for OpenFOAM.