The open source CFD toolbox
motionSmoother.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) 2013 OpenFOAM Foundation
9-------------------------------------------------------------------------------
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
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\*---------------------------------------------------------------------------*/
27
28#include "motionSmoother.H"
29
30// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31
32namespace Foam
33{
35}
36
37
38// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39
41(
43 pointMesh& pMesh,
46 const dictionary& paramDict,
47 const bool dryRun
48)
49:
50 motionSmootherData(pMesh),
52 (
53 mesh,
54 pMesh,
55 pp,
56 motionSmootherData::displacement_,
57 motionSmootherData::scale_,
58 motionSmootherData::oldPoints_,
60 paramDict,
61 dryRun
62 )
63{}
64
65
67(
71 const pointVectorField& displacement,
72 const dictionary& paramDict,
73 const bool dryRun
74)
75:
76 motionSmootherData(displacement),
78 (
79 mesh,
80 const_cast<pointMesh&>(displacement.mesh()),
81 pp,
82 motionSmootherData::displacement_,
83 motionSmootherData::scale_,
84 motionSmootherData::oldPoints_,
86 paramDict,
87 dryRun
88 )
89{}
90
91
92// ************************************************************************* //
A list of faces which address into the list of points.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Given a displacement moves the mesh by scaling the displacement back until there are no more mesh err...
Given a displacement moves the mesh by scaling the displacement back until there are no more mesh err...
Mesh representing a set of points created from polyMesh.
Definition: pointMesh.H:55
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
dynamicFvMesh & mesh
Namespace for OpenFOAM.