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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::staticFvMesh
29
30Description
31 Foam::staticFvMesh
32
33SourceFiles
34 staticFvMesh.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef staticFvMesh_H
39#define staticFvMesh_H
40
41#include "dynamicFvMesh.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class staticFvMesh Declaration
50\*---------------------------------------------------------------------------*/
52class 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
65public:
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,
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// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:81
virtual const faceList & faces() const
Return raw faces.
Definition: polyMesh.C:1108
virtual const pointField & points() const
Return raw points.
Definition: polyMesh.C:1083
Foam::staticFvMesh.
Definition: staticFvMesh.H:54
TypeName("staticFvMesh")
Runtime type information.
virtual bool dynamic() const
Is mesh dynamic.
Definition: staticFvMesh.H:95
~staticFvMesh()=default
Destructor.
virtual bool update()
Dummy update function which does not change the mesh.
Definition: staticFvMesh.C:74
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73