dynamicOversetFvMesh.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 "dynamicOversetFvMesh.H"
30 
31 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35  defineTypeNameAndDebug(dynamicOversetFvMesh, 0);
37 }
38 
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
42 Foam::dynamicOversetFvMesh::dynamicOversetFvMesh
43 (
44  const IOobject& io,
45  const bool doInit
46 )
47 :
49  oversetFvMeshBase(static_cast<const fvMesh&>(*this))
50 {}
51 
52 
53 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
54 
56 {}
57 
58 
59 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
60 
62 {
64  {
65  return false;
66  }
67 
69 
70  return true;
71 }
72 
73 
75 (
76  IOstreamOption streamOpt,
77  const bool writeOnProc
78 ) const
79 {
80  bool ok =
81  dynamicMotionSolverListFvMesh::writeObject(streamOpt, writeOnProc);
82  ok = oversetFvMeshBase::writeObject(streamOpt, writeOnProc) && ok;
83  return ok;
84 }
85 
86 
87 // ************************************************************************* //
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.
virtual bool update()
Update the mesh for both mesh motion and topology change.
A simple container for options an IOstream can normally have.
Macros for easy insertion into run-time selection tables.
virtual bool update()
Update the mesh for both mesh motion and topology change.
dynamicFvMesh with support for overset meshes.
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using given format, version and compression.
defineTypeNameAndDebug(combustionModel, 0)
Dynamic mesh able to handle multiple motion solvers. NOTE: If the word entry "solvers" is not found i...
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 ~dynamicOversetFvMesh()
Destructor.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:172
Namespace for OpenFOAM.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)