surfaceMeshGeometryModification.H
Go to the documentation of this file.
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.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  surfaceMeshGeometryModification
26 
27 Description
28  Modifies geometry of surface meshes according to the anisotropic sources
29  given by the user
30 
31 SourceFiles
32  surfaceMeshGeometryModification.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef surfaceMeshGeometryModification_H
37 #define surfaceMeshGeometryModification_H
38 
39 #include "coordinateModification.H"
40 #include "point.H"
41 #include "typeInfo.H"
42 #include "coordinateModifier.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 class triSurf;
50 class dictionary;
51 
52 /*---------------------------------------------------------------------------*\
53  Class surfaceMeshGeometryModification Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58  // Private data
59  //- reference to triSurf
60  const triSurf& surf_;
61 
62  //- length of box sides
63  const dictionary& meshDict_;
64 
65  //- contruct coordinate modification
67 
68  //- is mofdification active
70 
71 
72  // Private member functions
73  //- check existence of geometry modifiers
74  void checkModification();
75 
76  //- disallow bitwise copy construct
78 
79  //- disallow bitwise assignment
81 
82 public:
83 
84  // Constructors
85 
86  //- Construct from triSurf and dictionary
88 
89  // Destructor
91 
92  // Member Functions
93 
94  //- is geometry modification active
95  bool activeModification() const;
96 
97  //- modify coordinates
98  const triSurf* modifyGeometry() const;
99 
100  //- revert geometry modification
101  const triSurf* revertGeometryModification() const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace Foam
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #endif
112 
113 // ************************************************************************* //
Foam::surfaceMeshGeometryModification::surfaceMeshGeometryModification
surfaceMeshGeometryModification(const surfaceMeshGeometryModification &)
disallow bitwise copy construct
Foam::surfaceMeshGeometryModification::meshDict_
const dictionary & meshDict_
length of box sides
Definition: surfaceMeshGeometryModification.H:62
typeInfo.H
Foam::surfaceMeshGeometryModification::operator=
void operator=(const surfaceMeshGeometryModification &)
disallow bitwise assignment
point.H
Foam::surfaceMeshGeometryModification::surf_
const triSurf & surf_
reference to triSurf
Definition: surfaceMeshGeometryModification.H:59
Foam::surfaceMeshGeometryModification::activeModification
bool activeModification() const
is geometry modification active
Definition: surfaceMeshGeometryModification.C:72
Foam::surfaceMeshGeometryModification::~surfaceMeshGeometryModification
~surfaceMeshGeometryModification()
Definition: surfaceMeshGeometryModification.C:65
Foam::surfaceMeshGeometryModification::revertGeometryModification
const triSurf * revertGeometryModification() const
revert geometry modification
Definition: surfaceMeshGeometryModification.C:158
coordinateModifier.H
Foam::surfaceMeshGeometryModification::checkModification
void checkModification()
check existence of geometry modifiers
Definition: surfaceMeshGeometryModification.C:36
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
coordinateModification.H
Foam::surfaceMeshGeometryModification
Definition: surfaceMeshGeometryModification.H:55
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::surfaceMeshGeometryModification::modifyGeometry
const triSurf * modifyGeometry() const
modify coordinates
Definition: surfaceMeshGeometryModification.C:77
triSurf
A class for triangulated surface used in the meshing process. It is derived from points and facets wi...
Foam::coordinateModifier
Definition: coordinateModifier.H:54
Foam::triSurf
Definition: triSurf.H:59
Foam::surfaceMeshGeometryModification::coordinateModifierPtr_
coordinateModifier * coordinateModifierPtr_
contruct coordinate modification
Definition: surfaceMeshGeometryModification.H:65
Foam::surfaceMeshGeometryModification::modificationActive_
bool modificationActive_
is mofdification active
Definition: surfaceMeshGeometryModification.H:68