Loading...
Searching...
No Matches
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,2024 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
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
30
31// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33namespace Foam
34{
35 defineTypeNameAndDebug(dynamicOversetFvMesh, 0);
37}
38
39
40// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
42Foam::dynamicOversetFvMesh::dynamicOversetFvMesh
43(
44 const IOobject& io,
45 const bool doInit
46)
47:
48 dynamicMotionSolverListFvMesh(io, doInit),
49 oversetFvMeshBase(static_cast<const fvMesh&>(*this))
50{}
51
52
53// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
56{}
57
58
59// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
60
62{
64 {
65 return false;
66 }
67
68 //Note: too late to do oversetFvMeshBase::clearOut() to get it
69 // consistent with any new cell-cell stencil since
70 // dynamicMotionSolverListFvMesh already triggers
71 // meshObject::movePoints on cellCellStencilObject
73
74 return true;
75}
76
77
79(
80 IOstreamOption streamOpt,
81 const bool writeOnProc
82) const
83{
84 bool ok =
85 dynamicMotionSolverListFvMesh::writeObject(streamOpt, writeOnProc);
86 ok = oversetFvMeshBase::writeObject(streamOpt, writeOnProc) && ok;
87 return ok;
88}
89
90
91// ************************************************************************* //
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition IOobject.H:191
A simple container for options an IOstream can normally have.
Abstract base class for geometry and/or topology changing fvMesh.
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.
virtual ~dynamicOversetFvMesh()
Destructor.
virtual bool update()
Update the mesh for both mesh motion and topology change.
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write the underlying polyMesh and other data.
Definition fvMesh.C:1045
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.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
const auto & io
Namespace for OpenFOAM.