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 movingBoxFvMesh_H
44 #define movingBoxFvMesh_H
46 #include "dynamicFvMesh.H"
47 #include "dictionary.H"
48 #include "pointIOField.H"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 /*---------------------------------------------------------------------------*\
56 Class movingBoxFvMesh Declaration
57 \*---------------------------------------------------------------------------*/
65 //- Moving mesh dictionary
66 dictionary movingMeshCoeffs_;
68 //- Motion box and direction
69 vector splitDirection_;
80 //- Stationary point location
81 pointIOField stationaryPoints_;
83 //- Vertex markup field
84 scalarField motionMarkup_;
87 // Private Member Functions
89 //- Disallow default bitwise copy construct
90 movingBoxFvMesh(const movingBoxFvMesh&);
92 //- Disallow default bitwise assignment
93 void operator=(const movingBoxFvMesh&);
98 //- Runtime type information
99 TypeName("movingBoxFvMesh");
104 //- Construct from IOobject
105 movingBoxFvMesh(const IOobject& io);
110 virtual ~movingBoxFvMesh();
115 //- Update the mesh for both mesh motion and topology change
116 virtual bool update();
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 } // End namespace Foam
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //