displacementMethodvelocityLaplacian.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) 2007-2019 PCOpt/NTUA
9 Copyright (C) 2013-2019 FOSS GP
10 Copyright (C) 2019 OpenCFD Ltd.
11-------------------------------------------------------------------------------
12License
13 This file is part of OpenFOAM.
14
15 OpenFOAM is free software: you can redistribute it and/or modify it
16 under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19
20 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27
28
29
30Class
31 Foam::displacementMethodvelocityLaplacian
32
33Description
34 Wrapper class for the velocityLaplacian motion solver
35
36SourceFiles
37 displacementMethodvelocityLaplacian.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef displacementMethodvelocityLaplacian_H
42#define displacementMethodvelocityLaplacian_H
43
44#include "displacementMethod.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50
51/*---------------------------------------------------------------------------*\
52 Class displacementMethodvelocityLaplacian Declaration
53\*---------------------------------------------------------------------------*/
56:
58{
59protected:
60
61 // Protected data
67 bool resetFields_;
68
69
70private:
71
72 // Private Member Functions
73
74 //- No copy construct
76 (
78 ) = delete;
79
80 //- No copy assignment
81 void operator=(const displacementMethodvelocityLaplacian&) = delete;
82
83
84public:
85
86 //- Runtime type information
87 TypeName("velocityLaplacian");
88
89
90 // Constructors
91
92 //- Construct from components
94 (
95 fvMesh& mesh,
96 const labelList& patchIDs
97 );
98
99
100 //- Destructor
101 virtual ~displacementMethodvelocityLaplacian() = default;
102
103
104 // Member Functions
105
106 //- Set motion filed related to model based on given motion
107 void setMotionField(const pointVectorField& pointMovement);
108
109 //- Set motion filed related to model based on given motion
110 void setMotionField(const volVectorField& cellMovement);
111
112 //- Set control field as a vectorField. For methods working with
113 //- parameters (RBF etc)
114 void setControlField(const vectorField& controlField);
115
116 //- Set control field as a vectorField. For methods working with
117 //- parameters (RBF etc)
118 void setControlField(const scalarField& controlField);
119};
120
121
122// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124} // End namespace Foam
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128#endif
129
130// ************************************************************************* //
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
Wrapper class for the velocityLaplacian motion solver.
TypeName("velocityLaplacian")
Runtime type information.
virtual ~displacementMethodvelocityLaplacian()=default
Destructor.
void setMotionField(const pointVectorField &pointMovement)
Set motion filed related to model based on given motion.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
dynamicFvMesh & mesh
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73