staticOversetFvMesh.C
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) 2022 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify i
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 #include "staticOversetFvMesh.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
37 }
38 
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
42 Foam::staticOversetFvMesh::staticOversetFvMesh(const IOobject& io)
43 :
45  oversetFvMeshBase(static_cast<const fvMesh&>(*this))
46 {
48 }
49 
50 
51 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
52 
54 {}
55 
56 
57 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
58 
60 {
61  if (!staticFvMesh::update())
62  {
63  return false;
64  }
65 
67 
68  return true;
69 }
70 
71 
73 (
74  IOstreamOption streamOpt,
75  const bool writeOnProc
76 ) const
77 {
78  bool ok = staticFvMesh::writeObject(streamOpt, writeOnProc);
79  ok = oversetFvMeshBase::writeObject(streamOpt, writeOnProc) && ok;
80  return ok;
81 }
82 
83 
84 // ************************************************************************* //
virtual bool update()
Dummy update function which does not change the mesh.
Definition: staticFvMesh.C:67
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using given format, version and compression.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write the underlying polyMesh and other data.
Definition: fvMesh.C:1079
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
A simple container for options an IOstream can normally have.
Macros for easy insertion into run-time selection tables.
mesh update()
defineTypeNameAndDebug(combustionModel, 0)
Support for overset functionality.
virtual bool update()
Update the mesh for both mesh motion and topology change.
Abstract base class for geometry and/or topology changing fvMesh.
Definition: dynamicFvMesh.H:74
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual ~staticOversetFvMesh()
Destructor.
virtual bool update()
Update the mesh for both mesh motion and topology change.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Foam::staticFvMesh.
Definition: staticFvMesh.H:47
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:172
Namespace for OpenFOAM.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
fvMesh with support for overset meshes.