OpenFOAM
v2406
The open source CFD toolbox
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
"
29
#include "
addToRunTimeSelectionTable.H
"
30
31
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33
namespace
Foam
34
{
35
defineTypeNameAndDebug
(dynamicOversetFvMesh, 0);
36
addToRunTimeSelectionTable
(
dynamicFvMesh
,
dynamicOversetFvMesh
,
IOobject
);
37
}
38
39
40
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
42
Foam::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 * * * * * * * * * * * * * * * //
54
55
Foam::dynamicOversetFvMesh::~dynamicOversetFvMesh
()
56
{}
57
58
59
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
60
61
bool
Foam::dynamicOversetFvMesh::update
()
62
{
63
if
(!
dynamicMotionSolverListFvMesh::update
())
64
{
65
return
false
;
66
}
67
68
oversetFvMeshBase::update
();
69
70
return
true
;
71
}
72
73
74
bool
Foam::dynamicOversetFvMesh::writeObject
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
// ************************************************************************* //
Foam::fvMesh::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write the underlying polyMesh and other data.
Definition:
fvMesh.C:1090
Foam::oversetFvMeshBase::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
Definition:
oversetFvMeshBase.C:620
Foam::dynamicMotionSolverListFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
dynamicMotionSolverListFvMesh.C:164
Foam::IOstreamOption
A simple container for options an IOstream can normally have.
Definition:
IOstreamOption.H:59
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
dynamicOversetFvMesh.H
Foam::dynamicOversetFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
dynamicOversetFvMesh.C:54
Foam::dynamicOversetFvMesh
dynamicFvMesh with support for overset meshes.
Definition:
dynamicOversetFvMesh.H:47
Foam::dynamicOversetFvMesh::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using given format, version and compression.
Definition:
dynamicOversetFvMesh.C:68
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::dynamicMotionSolverListFvMesh
Dynamic mesh able to handle multiple motion solvers. NOTE: If the word entry "solvers" is not found i...
Definition:
dynamicMotionSolverListFvMesh.H:51
Foam::oversetFvMeshBase
Support for overset functionality.
Definition:
oversetFvMeshBase.H:52
Foam::oversetFvMeshBase::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
oversetFvMeshBase.C:574
Foam::dynamicFvMesh
Abstract base class for geometry and/or topology changing fvMesh.
Definition:
dynamicFvMesh.H:74
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition:
fvMesh.H:78
Foam::dynamicOversetFvMesh::~dynamicOversetFvMesh
virtual ~dynamicOversetFvMesh()
Destructor.
Definition:
dynamicOversetFvMesh.C:48
io
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition:
IOobject.H:180
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
src
overset
oversetFvMesh
dynamicOversetFvMesh
dynamicOversetFvMesh.C
Generated by
1.8.14