Forward compatibility: flex
[foam-extend-3.2.git] / src / mesh / cfMesh / utilities / anisotropicMeshing / polyMeshGenGeometryModification / polyMeshGenGeometryModification.H
blobb81ab14ed30f3dbf71279c6d3881321923f808f9
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | cfMesh: A library for mesh generation
4    \\    /   O peration     |
5     \\  /    A nd           | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6      \\/     M anipulation  | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9     This file is part of cfMesh.
11     cfMesh 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 3 of the License, or (at your
14     option) any later version.
16     cfMesh 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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with cfMesh.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     polyMeshGenGeometryModification
27 Description
28     Modifies coordinates of points in the mesh to achieve anistropy
30 SourceFiles
31     polyMeshGenGeometryModification.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef polyMeshGenGeometryModification_H
36 #define polyMeshGenGeometryModification_H
38 #include "coordinateModification.H"
39 #include "polyMeshGenModifier.H"
40 #include "typeInfo.H"
41 #include "coordinateModifier.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 class dictionary;
50 /*---------------------------------------------------------------------------*\
51                 Class polyMeshGenGeometryModification Declaration
52 \*---------------------------------------------------------------------------*/
54 class polyMeshGenGeometryModification
56     // Private data
57         //- reference to polyMeshGen
58         polyMeshGen& mesh_;
60         //- length of box sides
61         const dictionary& meshDict_;
63         //- contruct coordinate modification
64         coordinateModifier* coordinateModifierPtr_;
66         //- is mofdification active
67         bool modificationActive_;
70     // Private member functions
71         //- check existence of geometry modifiers
72         void checkModification();
74         //- disable bitwise copy construct
75         polyMeshGenGeometryModification(const polyMeshGenGeometryModification&);
77         //- disable bitwise assignment
78         void operator=(const polyMeshGenGeometryModification&);
80 public:
82     // Constructors
84         //- Construct from polyMeshGen and dictionary
85         polyMeshGenGeometryModification(polyMeshGen&, const dictionary&);
87     // Destructor
88         ~polyMeshGenGeometryModification();
90     // Member Functions
92         //- is geometry modification active
93         bool activeModification() const;
95         //- modify coordinates
96         void modifyGeometry();
98         //- revert modification of coorinates
99         void revertGeometryModification();
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 } // End namespace Foam
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 #endif
111 // ************************************************************************* //