OpenFOAM: API Guide
v2112
The open source CFD toolbox
fvMotionSolver.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) 2012-2016 OpenFOAM Foundation
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::fvMotionSolver
28
29
Description
30
Base class for fvMesh based motionSolvers.
31
32
SourceFiles
33
fvMotionSolver.C
34
35
\*---------------------------------------------------------------------------*/
36
37
#ifndef fvMotionSolver_H
38
#define fvMotionSolver_H
39
40
#include "
fvMesh.H
"
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
47
/*---------------------------------------------------------------------------*\
48
Class velocityMotionSolver Declaration
49
\*---------------------------------------------------------------------------*/
50
51
class
fvMotionSolver
52
{
53
54
protected
:
55
56
// Protected data
57
58
//- The fvMesh to be moved
59
const
fvMesh
&
fvMesh_
;
60
61
62
// Protected Member Functions
63
64
//- Create the corresponding patch types for cellMotion from those
65
// of the given pointMotion
66
template
<
class
Type>
67
wordList
cellMotionBoundaryTypes
68
(
69
const
typename
GeometricField<Type, pointPatchField, pointMesh>
::
70
Boundary& pmUbf
71
)
const
;
72
73
public
:
74
75
//- Runtime type information
76
ClassName
(
"displacementMotionSolver"
);
77
78
// Constructors
79
80
//- Construct from polyMesh
81
fvMotionSolver
(
const
polyMesh
&);
82
83
84
// Member Functions
85
86
//- Return reference to the fvMesh to be moved
87
const
fvMesh
&
mesh
()
const
88
{
89
return
fvMesh_
;
90
}
91
};
92
93
94
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95
96
}
// End namespace Foam
97
98
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100
#ifdef NoRepository
101
#include "
fvMotionSolverTemplates.C
"
102
#endif
103
104
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106
#endif
107
108
// ************************************************************************* //
Foam::fvMotionSolver::fvMotionSolver
fvMotionSolver(const polyMesh &)
Construct from polyMesh.
Definition:
fvMotionSolver.C:40
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition:
polyMesh.H:77
Foam::fvMotionSolver
Base class for fvMesh based motionSolvers.
Definition:
fvMotionSolver.H:50
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition:
fvMesh.H:85
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
fvMotionSolverTemplates.C
Foam::fvMotionSolver::ClassName
ClassName("displacementMotionSolver")
Runtime type information.
Foam::List< word >
Foam::fvMotionSolver::cellMotionBoundaryTypes
wordList cellMotionBoundaryTypes(const typename GeometricField< Type, pointPatchField, pointMesh >::Boundary &pmUbf) const
Create the corresponding patch types for cellMotion from those.
Foam::GeometricField
Generic GeometricField class.
Definition:
areaFieldsFwd.H:53
Foam::fvMotionSolver::mesh
const fvMesh & mesh() const
Return reference to the fvMesh to be moved.
Definition:
fvMotionSolver.H:86
Foam::fvMotionSolver::fvMesh_
const fvMesh & fvMesh_
The fvMesh to be moved.
Definition:
fvMotionSolver.H:58
src
fvMotionSolver
fvMotionSolvers
fvMotionSolver
fvMotionSolver.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.