OpenFOAM
v2312
The open source CFD toolbox
dynamicMotionSolverFvMeshAMI.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) 2011-2017 OpenFOAM Foundation
9
Copyright (C) 2020 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
12
This file is part of OpenFOAM.
13
14
OpenFOAM is free software: you can redistribute it and/or modify it
15
under the terms of the GNU General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
19
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27
Class
28
Foam::dynamicMotionSolverFvMeshAMI
29
30
Description
31
The dynamicMotionSolverFvMeshAMI
32
33
SourceFiles
34
dynamicMotionSolverFvMeshAMI.C
35
36
\*---------------------------------------------------------------------------*/
37
38
#ifndef dynamicMotionSolverFvMeshAMI_H
39
#define dynamicMotionSolverFvMeshAMI_H
40
41
#include "
dynamicFvMesh.H
"
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
48
class
motionSolver;
49
50
/*---------------------------------------------------------------------------*\
51
Class dynamicMotionSolverFvMeshAMI Declaration
52
\*---------------------------------------------------------------------------*/
53
54
class
dynamicMotionSolverFvMeshAMI
55
:
56
public
dynamicFvMesh
57
{
58
// Private data
59
60
autoPtr<motionSolver>
motionPtr_;
61
62
63
// Private Member Functions
64
65
//- No copy construct
66
dynamicMotionSolverFvMeshAMI
67
(
68
const
dynamicMotionSolverFvMeshAMI
&
69
) =
delete
;
70
71
//- No copy assignment
72
void
operator=(
const
dynamicMotionSolverFvMeshAMI
&) =
delete
;
73
74
75
public
:
76
77
//- Runtime type information
78
TypeName
(
"dynamicMotionSolverFvMeshAMI"
);
79
80
81
// Constructors
82
83
//- Construct from IOobject
84
dynamicMotionSolverFvMeshAMI
85
(
86
const
IOobject
&
io
,
87
const
bool
doInit=
true
88
);
89
90
//- Construct from components without boundary.
91
// Boundary is added using addFvPatches() member function
92
dynamicMotionSolverFvMeshAMI
93
(
94
const
IOobject
&
io
,
95
pointField
&&
points
,
96
faceList
&&
faces
,
97
labelList
&& allOwner,
98
labelList
&& allNeighbour,
99
const
bool
syncPar =
true
100
);
101
102
103
//- Destructor
104
virtual
~dynamicMotionSolverFvMeshAMI
() =
default
;
105
106
107
// Member Functions
108
109
//- Initialise all non-demand-driven data
110
virtual
bool
init
(
const
bool
doInit);
111
112
//- Return the motionSolver
113
const
motionSolver
&
motion
()
const
;
114
115
//- Update the mesh for both mesh motion and topology change
116
virtual
bool
update
();
117
};
118
119
120
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121
122
}
// End namespace Foam
123
124
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125
126
#endif
127
128
// ************************************************************************* //
Foam::dynamicMotionSolverFvMeshAMI::TypeName
TypeName("dynamicMotionSolverFvMeshAMI")
Runtime type information.
Foam::dynamicMotionSolverFvMeshAMI::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition:
dynamicMotionSolverFvMeshAMI.C:114
dynamicFvMesh.H
Foam::List< face >
Foam::motionSolver
Virtual base class for mesh motion solver.
Definition:
motionSolver.H:54
Foam::dynamicMotionSolverFvMeshAMI::~dynamicMotionSolverFvMeshAMI
virtual ~dynamicMotionSolverFvMeshAMI()=default
Destructor.
Foam::dynamicMotionSolverFvMeshAMI::motion
const motionSolver & motion() const
Return the motionSolver.
Definition:
dynamicMotionSolverFvMeshAMI.C:108
Foam::polyMesh::points
virtual const pointField & points() const
Return raw points.
Definition:
polyMesh.C:1078
Foam::dynamicMotionSolverFvMeshAMI
The dynamicMotionSolverFvMeshAMI.
Definition:
dynamicMotionSolverFvMeshAMI.H:49
Foam::Field< vector >
Foam::polyMesh::faces
virtual const faceList & faces() const
Return raw faces.
Definition:
polyMesh.C:1103
Foam::dynamicFvMesh
Abstract base class for geometry and/or topology changing fvMesh.
Definition:
dynamicFvMesh.H:74
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::dynamicMotionSolverFvMeshAMI::init
virtual bool init(const bool doInit)
Initialise all non-demand-driven data.
Definition:
dynamicMotionSolverFvMeshAMI.C:71
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
src
dynamicFvMesh
dynamicMotionSolverFvMeshAMI
dynamicMotionSolverFvMeshAMI.H
Generated by
1.8.14