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 edgeMeshGeometryModification
28 Modifies geometry of edge meshes according to the anisotropic sources
32 edgeMeshGeometryModification.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef edgeMeshGeometryModification_H
37 #define edgeMeshGeometryModification_H
39 #include "coordinateModification.H"
42 #include "coordinateModifier.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class edgeMeshGeometryModification Declaration
54 \*---------------------------------------------------------------------------*/
56 class edgeMeshGeometryModification
59 //- reference to edgeMesh
60 const edgeMesh& edgeMesh_;
62 //- length of box sides
63 const dictionary& meshDict_;
65 //- contruct coordinate modification
66 coordinateModifier* coordinateModifierPtr_;
68 //- is mofdification active
69 bool modificationActive_;
72 // Private member functions
73 //- check existence of geometry modifiers
74 void checkModification();
76 //- disallow bitwise copy construct
77 edgeMeshGeometryModification(const edgeMeshGeometryModification&);
79 //- disallow bitwise assignment
80 void operator=(const edgeMeshGeometryModification&);
86 //- Construct from edgeMesh and dictionary
87 edgeMeshGeometryModification(const edgeMesh&, const dictionary&);
90 ~edgeMeshGeometryModification();
94 //- is geometry modification active
95 bool activeModification() const;
97 //- modify coordinates
98 const edgeMesh* modifyGeometry() const;
100 //- revert geometry modification
101 const edgeMesh* revertGeometryModification() const;
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 } // End namespace Foam
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 // ************************************************************************* //