1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Automatic simplified mesh motion for "box-in-mesh" cases. Here,
30 a direction of motion is defined, together with motion amplitude
31 and frequency. The domain is separated into three parts, where
32 the middle part moves according to the prescribed motion law.
33 Parts of the mesh before and after the obstacle are scaled.
39 Hrvoje Jasak, Wikki Ltd. All rights reserved
41 \*---------------------------------------------------------------------------*/
43 #ifndef dynamicBoxFvMesh_H
44 #define dynamicBoxFvMesh_H
46 #include "dynamicFvMesh.H"
47 #include "dictionary.H"
48 #include "pointIOField.H"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56 Class dynamicBoxFvMesh Declaration
57 \*---------------------------------------------------------------------------*/
59 class dynamicBoxFvMesh
65 //- Moving mesh dictionary
66 dictionary movingMeshCoeffs_;
68 //- Motion box and direction
69 vector splitDirection_;
83 //- Stationary point location
84 pointIOField stationaryPoints_;
86 //- Vertex markup field
87 scalarField motionMarkup_;
90 // Private Member Functions
92 //- Disallow default bitwise copy construct
93 dynamicBoxFvMesh(const dynamicBoxFvMesh&);
95 //- Disallow default bitwise assignment
96 void operator=(const dynamicBoxFvMesh&);
101 //- Runtime type information
102 TypeName("dynamicBoxFvMesh");
107 //- Construct from IOobject
108 dynamicBoxFvMesh(const IOobject& io);
113 virtual ~dynamicBoxFvMesh();
118 //- Update the mesh for both mesh motion and topology change
119 virtual bool update();
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 } // End namespace Foam
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 // ************************************************************************* //