displacementMethodvolumetricBSplinesMotionSolver.C
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-2020 PCOpt/NTUA
9  Copyright (C) 2013-2020 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 
31 
32 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33 
34 namespace Foam
35 {
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 defineTypeNameAndDebug(displacementMethodvolumetricBSplinesMotionSolver, 0);
41 (
42  displacementMethod,
43  displacementMethodvolumetricBSplinesMotionSolver,
44  dictionary
45 );
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
49 displacementMethodvolumetricBSplinesMotionSolver::
50 displacementMethodvolumetricBSplinesMotionSolver
51 (
52  fvMesh& mesh,
53  const labelList& patchIDs
54 )
55 :
56  displacementMethod(mesh, patchIDs)
57 {}
58 
59 
60 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61 
63 (
64  const pointVectorField& pointMovement
65 )
66 {
68 }
69 
70 
72 (
73  const volVectorField& cellMovement
74 )
75 {
77 }
78 
79 
81 (
82  const vectorField& controlField
83 )
84 {
85  // refCast motionSolver to volumetricBSplinesMotionSolver in order to pass
86  // control points movement. Safe since the motionSolver can only be an
87  // volumetricBSplinesMotionSolver
88  refCast<volumetricBSplinesMotionSolver>
89  (motionPtr_()).setControlPointsMovement(controlField);
90 }
91 
92 
94 (
95  const scalarField& controlField
96 )
97 {
99 }
100 
101 
103 (
104  vectorField& controlField
105 )
106 {
107  // refCast motionSolver to volumetricBSplinesMotionSolver in order to bound
108  // control points movement. Safe since the motionSolver can only be an
109  // volumetricBSplinesMotionSolver
110  refCast<volumetricBSplinesMotionSolver>
111  (motionPtr_()).boundControlPointMovement(controlField);
112 }
113 
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 } // End namespace Foam
118 
119 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::displacementMethodvolumetricBSplinesMotionSolver::boundControlField
void boundControlField(vectorField &controlField)
Definition: displacementMethodvolumetricBSplinesMotionSolver.C:103
Foam::displacementMethod
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
Definition: displacementMethod.H:59
displacementMethodvolumetricBSplinesMotionSolver.H
Foam::displacementMethodvolumetricBSplinesMotionSolver::setControlField
void setControlField(const vectorField &controlField)
Definition: displacementMethodvolumetricBSplinesMotionSolver.C:81
NotImplemented
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:445
Foam::Field< vector >
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:63
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:83
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::List< label >
Foam::GeometricField< vector, pointPatchField, pointMesh >
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)