1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | cfMesh: A library for mesh generation
5 \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6 \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
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
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/>.
25 polyMeshGenGeometryModification
28 Modifies coordinates of points in the mesh to achieve anistropy
31 polyMeshGenGeometryModification.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef polyMeshGenGeometryModification_H
36 #define polyMeshGenGeometryModification_H
38 #include "coordinateModification.H"
39 #include "polyMeshGenModifier.H"
41 #include "coordinateModifier.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class polyMeshGenGeometryModification Declaration
52 \*---------------------------------------------------------------------------*/
54 class polyMeshGenGeometryModification
57 //- reference to polyMeshGen
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&);
84 //- Construct from polyMeshGen and dictionary
85 polyMeshGenGeometryModification(polyMeshGen&, const dictionary&);
88 ~polyMeshGenGeometryModification();
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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 // ************************************************************************* //