staticFvMesh.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9  Copyright (C) 2020 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::staticFvMesh
29 
30 Description
31  Foam::staticFvMesh
32 
33 SourceFiles
34  staticFvMesh.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef staticFvMesh_H
39 #define staticFvMesh_H
40 
41 #include "dynamicFvMesh.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class staticFvMesh Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class staticFvMesh
53 :
54  public dynamicFvMesh
55 {
56  // Private Member Functions
57 
58  //- No copy construct
59  staticFvMesh(const staticFvMesh&) = delete;
60 
61  //- No copy assignment
62  void operator=(const staticFvMesh&) = delete;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("staticFvMesh");
69 
70 
71  // Constructors
72 
73  //- Construct from IOobject
74  staticFvMesh(const IOobject& io, const bool doInit=true);
75 
76  //- Construct from components without boundary.
77  // Boundary is added using addFvPatches() member function
79  (
80  const IOobject& io,
82  faceList&& faces,
83  labelList&& allOwner,
84  labelList&& allNeighbour,
85  const bool syncPar = true
86  );
87 
88 
89  //- Destructor
90  ~staticFvMesh() = default;
91 
92 
93  // Member Functions
94 
95  //- Is mesh dynamic
96  virtual bool dynamic() const
97  {
98  return false;
99  }
100 
101  //- Dummy update function which does not change the mesh
102  virtual bool update();
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
Foam::polyMesh::points
virtual const pointField & points() const
Return raw points.
Definition: polyMesh.C:1069
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::staticFvMesh
Foam::staticFvMesh.
Definition: staticFvMesh.H:51
Foam::dynamicFvMesh
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:78
Foam::Field< vector >
Foam::staticFvMesh::~staticFvMesh
~staticFvMesh()=default
Destructor.
Foam::staticFvMesh::TypeName
TypeName("staticFvMesh")
Runtime type information.
Foam::staticFvMesh::dynamic
virtual bool dynamic() const
Is mesh dynamic.
Definition: staticFvMesh.H:95
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::polyMesh::faces
virtual const faceList & faces() const
Return raw faces.
Definition: polyMesh.C:1094
Foam::List< face >
dynamicFvMesh.H
Foam::staticFvMesh::update
virtual bool update()
Dummy update function which does not change the mesh.
Definition: staticFvMesh.C:74