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 -------------------------------------------------------------------------------
12 License
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 
30 Class
31  Foam::displacementMethodvelocityLaplacian
32 
33 Description
34  Wrapper class for the velocityLaplacian motion solver
35 
36 SourceFiles
37  displacementMethodvelocityLaplacian.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef displacementMethodvelocityLaplacian_H
42 #define displacementMethodvelocityLaplacian_H
43 
44 #include "displacementMethod.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class displacementMethodvelocityLaplacian Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public displacementMethod
58 {
59 protected:
60 
61  // Protected data
62 
64 
66 
67  bool resetFields_;
68 
69 
70 private:
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 
84 public:
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 // ************************************************************************* //
Foam::displacementMethod
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
Definition: displacementMethod.H:59
Foam::displacementMethodvelocityLaplacian::resetFields_
bool resetFields_
Definition: displacementMethodvelocityLaplacian.H:66
Foam::displacementMethodvelocityLaplacian::TypeName
TypeName("velocityLaplacian")
Runtime type information.
Foam::Field< vector >
Foam::displacementMethodvelocityLaplacian::~displacementMethodvelocityLaplacian
virtual ~displacementMethodvelocityLaplacian()=default
Destructor.
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::displacementMethodvelocityLaplacian::pointMotionU_
pointVectorField & pointMotionU_
Definition: displacementMethodvelocityLaplacian.H:62
Foam::displacementMethodvelocityLaplacian::cellMotionU_
volVectorField & cellMotionU_
Definition: displacementMethodvelocityLaplacian.H:64
Foam::displacementMethodvelocityLaplacian::setControlField
void setControlField(const vectorField &controlField)
Definition: displacementMethodvelocityLaplacian.C:187
displacementMethod.H
Foam::displacementMethodvelocityLaplacian::setMotionField
void setMotionField(const pointVectorField &pointMovement)
Set motion filed related to model based on given motion.
Definition: displacementMethodvelocityLaplacian.C:110
Foam::List< label >
Foam::displacementMethodvelocityLaplacian
Wrapper class for the velocityLaplacian motion solver.
Definition: displacementMethodvelocityLaplacian.H:54
Foam::GeometricField
Generic GeometricField class.
Definition: areaFieldsFwd.H:53