1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
28 Given 2D mesh insert all the topology changes to extrude. Does not work
34 \*---------------------------------------------------------------------------*/
36 #ifndef extrude2DMesh_H
37 #define extrude2DMesh_H
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
52 class mapDistributePolyMesh;
54 /*---------------------------------------------------------------------------*\
55 Class extrude2DMesh Declaration
56 \*---------------------------------------------------------------------------*/
62 //- Reference to 2D mesh
63 const polyMesh& mesh_;
68 //- Runtime type information
69 ClassName("extrude2DMesh");
74 //- Construct from mesh
75 extrude2DMesh(const polyMesh&);
80 //- Play commands into polyTopoChange to extrude mesh.
83 const direction extrudeDir,
84 const scalar thickness,
85 const label frontPatchI,
89 //- Force recalculation of locally stored data on topological change
90 void updateMesh(const mapPolyMesh&)
93 //- Force recalculation of locally stored data for mesh distribution
94 void distribute(const mapDistributePolyMesh&)
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 } // End namespace Foam
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 // ************************************************************************* //