displacementMethodvolumetricBSplinesMotionSolver.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::displacementMethodvolumetricBSplinesMotionSolver
32 
33 Description
34  Wrapper class for the volumetricBSplinesMotionSolver motion solver
35 
36 SourceFiles
37  displacementMethodvolumetricBSplinesMotionSolver.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef displacementMethodvolumetricBSplinesMotionSolver_H
42 #define displacementMethodvolumetricBSplinesMotionSolver_H
43 
44 #include "displacementMethod.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class displacementMethodvolumetricBSplinesMotionSolver Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public displacementMethod
59 {
60 private:
61 
62  // Private Member Functions
63 
64  //- No copy construct
66  (
68  ) = delete;
69 
70  //- No copy assignment
71  void operator=
72  (
74  ) = delete;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("volumetricBSplinesMotionSolver");
81 
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  fvMesh& mesh,
89  const labelList& patchIDs
90  );
91 
92 
93  //- Destructor
95 
96 
97  // Member Functions
98 
99  //- Set motion filed related to model based on given motion
100  void setMotionField(const pointVectorField& pointMovement);
101 
102  //- Set motion filed related to model based on given motion
103  void setMotionField(const volVectorField& cellMovement);
104 
105  //- Set control field as a vectorField. For methods working with
106  //- parameters (RBF etc)
107  void setControlField(const vectorField& controlField);
108 
109  //- Set control field as a vectorField. For methods working with
110  //- parameters (RBF etc)
111  void setControlField(const scalarField& controlField);
112 
113  //- Bound control field in certain directions etc. For methods working
114  //- with parameters (RBF etc)
115  void boundControlField(vectorField& controlField);
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
Foam::displacementMethodvolumetricBSplinesMotionSolver::boundControlField
void boundControlField(vectorField &controlField)
Definition: displacementMethodvolumetricBSplinesMotionSolver.C:104
volumetricBSplinesMotionSolver.H
Foam::displacementMethodvolumetricBSplinesMotionSolver::TypeName
TypeName("volumetricBSplinesMotionSolver")
Runtime type information.
Foam::displacementMethod
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
Definition: displacementMethod.H:59
Foam::displacementMethodvolumetricBSplinesMotionSolver::setControlField
void setControlField(const vectorField &controlField)
Definition: displacementMethodvolumetricBSplinesMotionSolver.C:82
Foam::Field< vector >
Foam::displacementMethodvolumetricBSplinesMotionSolver::~displacementMethodvolumetricBSplinesMotionSolver
virtual ~displacementMethodvolumetricBSplinesMotionSolver()=default
Destructor.
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::displacementMethodvolumetricBSplinesMotionSolver::setMotionField
void setMotionField(const pointVectorField &pointMovement)
Set motion filed related to model based on given motion.
Definition: displacementMethodvolumetricBSplinesMotionSolver.C:64
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
displacementMethod.H
Foam::List< label >
Foam::GeometricField< vector, pointPatchField, pointMesh >
Foam::displacementMethodvolumetricBSplinesMotionSolver
Wrapper class for the volumetricBSplinesMotionSolver motion solver.
Definition: displacementMethodvolumetricBSplinesMotionSolver.H:55