edgeMeshGeometryModification.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  edgeMeshGeometryModification
26 
27 Description
28  Modifies geometry of edge meshes according to the anisotropic sources
29  given by the user
30 
31 SourceFiles
32  edgeMeshGeometryModification.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef edgeMeshGeometryModification_H
37 #define edgeMeshGeometryModification_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 edgeMesh;
50 class dictionary;
51 
52 /*---------------------------------------------------------------------------*\
53  Class edgeMeshGeometryModification Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 {
58  // Private data
59  //- reference to edgeMesh
60  const edgeMesh& edgeMesh_;
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 edgeMesh 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 edgeMesh* modifyGeometry() const;
99 
100  //- revert geometry modification
101  const edgeMesh* revertGeometryModification() const;
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace Foam
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #endif
112 
113 // ************************************************************************* //
Foam::edgeMeshGeometryModification::~edgeMeshGeometryModification
~edgeMeshGeometryModification()
Definition: edgeMeshGeometryModification.C:65
Foam::edgeMeshGeometryModification::modificationActive_
bool modificationActive_
is mofdification active
Definition: edgeMeshGeometryModification.H:68
typeInfo.H
Foam::edgeMeshGeometryModification::edgeMeshGeometryModification
edgeMeshGeometryModification(const edgeMeshGeometryModification &)
disallow bitwise copy construct
Foam::edgeMeshGeometryModification::operator=
void operator=(const edgeMeshGeometryModification &)
disallow bitwise assignment
point.H
Foam::edgeMeshGeometryModification::edgeMesh_
const edgeMesh & edgeMesh_
reference to edgeMesh
Definition: edgeMeshGeometryModification.H:59
Foam::edgeMeshGeometryModification::modifyGeometry
const edgeMesh * modifyGeometry() const
modify coordinates
Definition: edgeMeshGeometryModification.C:77
Foam::edgeMeshGeometryModification::meshDict_
const dictionary & meshDict_
length of box sides
Definition: edgeMeshGeometryModification.H:62
coordinateModifier.H
Foam::edgeMeshGeometryModification::checkModification
void checkModification()
check existence of geometry modifiers
Definition: edgeMeshGeometryModification.C:36
Foam::edgeMeshGeometryModification::revertGeometryModification
const edgeMesh * revertGeometryModification() const
revert geometry modification
Definition: edgeMeshGeometryModification.C:106
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
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::edgeMeshGeometryModification::activeModification
bool activeModification() const
is geometry modification active
Definition: edgeMeshGeometryModification.C:72
Foam::edgeMeshGeometryModification::coordinateModifierPtr_
coordinateModifier * coordinateModifierPtr_
contruct coordinate modification
Definition: edgeMeshGeometryModification.H:65
Foam::edgeMeshGeometryModification
Definition: edgeMeshGeometryModification.H:55
Foam::coordinateModifier
Definition: coordinateModifier.H:54
Foam::edgeMesh
Points connected by edges.
Definition: edgeMesh.H:69