OpenFOAM
v2312
The open source CFD toolbox
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
"
29
#include "
addToRunTimeSelectionTable.H
"
30
31
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32
33
namespace
Foam
34
{
35
defineTypeNameAndDebug
(
staticOversetFvMesh
, 0);
36
addToRunTimeSelectionTable
(
dynamicFvMesh
,
staticOversetFvMesh
,
IOobject
);
37
}
38
39
40
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41
42
Foam::staticOversetFvMesh::staticOversetFvMesh(
const
IOobject
&
io
)
43
:
44
staticFvMesh
(
io
),
45
oversetFvMeshBase
(static_cast<const
fvMesh
&>(*this))
46
{
47
oversetFvMeshBase::update
();
48
}
49
50
51
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
52
53
Foam::staticOversetFvMesh::~staticOversetFvMesh
()
54
{}
55
56
57
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
58
59
bool
Foam::staticOversetFvMesh::update
()
60
{
61
if
(!
staticFvMesh::update
())
62
{
63
return
false
;
64
}
65
66
oversetFvMeshBase::update
();
67
68
return
true
;
69
}
70
71
72
bool
Foam::staticOversetFvMesh::writeObject
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
// ************************************************************************* //
Foam::staticFvMesh::update
virtual bool update()
Dummy update function which does not change the mesh.
Definition:
staticFvMesh.C:67
Foam::staticOversetFvMesh::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using given format, version and compression.
Definition:
staticOversetFvMesh.C:66
Foam::fvMesh::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write the underlying polyMesh and other data.
Definition:
fvMesh.C:1079
Foam::oversetFvMeshBase::writeObject
virtual bool writeObject(IOstreamOption streamOpt, const bool writeOnProc) const
Write using stream options.
Definition:
oversetFvMeshBase.C:620
Foam::IOstreamOption
A simple container for options an IOstream can normally have.
Definition:
IOstreamOption.H:62
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
staticOversetFvMesh.H
update
mesh update()
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
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::staticOversetFvMesh::~staticOversetFvMesh
virtual ~staticOversetFvMesh()
Destructor.
Definition:
staticOversetFvMesh.C:46
Foam::staticOversetFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
staticOversetFvMesh.C:52
io
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Foam::staticFvMesh
Foam::staticFvMesh.
Definition:
staticFvMesh.H:47
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition:
IOobject.H:172
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
Foam::staticOversetFvMesh
fvMesh with support for overset meshes.
Definition:
staticOversetFvMesh.H:47
src
overset
oversetFvMesh
staticOversetFvMesh
staticOversetFvMesh.C
Generated by
1.8.14