OpenFOAM
v2312
The open source CFD toolbox
dynamicMotionSolverTopoFvMesh.H
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) 2016-2020 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 it
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
Class
27
Foam::dynamicMotionSolverTopoFvMesh
28
29
Description
30
Sample topoChangerFvMesh that moves an object using a motion solver
31
32
SourceFiles
33
dynamicMotionSolverTopoFvMesh.C
34
35
\*---------------------------------------------------------------------------*/
36
37
#ifndef dynamicMotionSolverTopoFvMesh_H
38
#define dynamicMotionSolverTopoFvMesh_H
39
40
#include "
topoChangerFvMesh.H
"
41
#include "
motionSolver.H
"
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
48
// Forward declaration of classes
49
50
/*---------------------------------------------------------------------------*\
51
Class dynamicMotionSolverTopoFvMesh Declaration
52
\*---------------------------------------------------------------------------*/
53
54
class
dynamicMotionSolverTopoFvMesh
55
:
56
public
topoChangerFvMesh
57
{
58
// Private data
59
60
//- Motion dictionary
61
dictionary
motionDict_;
62
63
//- Motion solver
64
autoPtr<motionSolver>
motionPtr_;
65
66
67
// Private Member Functions
68
69
//- No copy construct
70
dynamicMotionSolverTopoFvMesh
71
(
72
const
dynamicMotionSolverTopoFvMesh
&
73
) =
delete
;
74
75
//- No copy assignment
76
void
operator=(
const
dynamicMotionSolverTopoFvMesh
&) =
delete
;
77
78
79
public
:
80
81
//- Runtime type information
82
TypeName
(
"dynamicMotionSolverTopoFvMesh"
);
83
84
85
// Constructors
86
87
//- Construct from database
88
explicit
dynamicMotionSolverTopoFvMesh
89
(
90
const
IOobject
&
io
,
91
const
bool
doInit=
true
92
);
93
94
95
//- Destructor
96
virtual
~dynamicMotionSolverTopoFvMesh
();
97
98
99
// Member Functions
100
101
//- Initialise all non-demand-driven data
102
virtual
bool
init
(
const
bool
doInit);
103
104
//- Update the mesh for both mesh motion and topology change
105
virtual
bool
update
();
106
};
107
108
109
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110
111
}
// End namespace Foam
112
113
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114
115
#endif
116
117
// ************************************************************************* //
Foam::dynamicMotionSolverTopoFvMesh::TypeName
TypeName("dynamicMotionSolverTopoFvMesh")
Runtime type information.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition:
dictionary.H:129
Foam::dynamicMotionSolverTopoFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
dynamicMotionSolverTopoFvMesh.C:89
Foam::dynamicMotionSolverTopoFvMesh::init
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Definition:
dynamicMotionSolverTopoFvMesh.C:67
motionSolver.H
Foam::topoChangerFvMesh
Abstract base class for a topology changing fvMesh.
Definition:
topoChangerFvMesh.H:49
Foam::dynamicMotionSolverTopoFvMesh::~dynamicMotionSolverTopoFvMesh
virtual ~dynamicMotionSolverTopoFvMesh()
Destructor.
Definition:
dynamicMotionSolverTopoFvMesh.C:83
Foam::dynamicMotionSolverTopoFvMesh
Sample topoChangerFvMesh that moves an object using a motion solver.
Definition:
dynamicMotionSolverTopoFvMesh.H:49
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition:
HashPtrTable.H: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:172
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
topoChangerFvMesh.H
src
topoChangerFvMesh
dynamicMotionSolverTopoFvMesh
dynamicMotionSolverTopoFvMesh.H
Generated by
1.8.14