meshSurfaceEngineModifier.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  meshSurfaceEngineModifier
26 
27 Description
28  Modifier for the meshSurfaceEngine
29 
30 SourceFiles
31  meshSurfaceEngine.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef meshSurfaceEngineModifier_H
36 #define meshSurfaceEngineModifier_H
37 
38 #include "meshSurfaceEngine.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class meshSurfaceEngineModifier Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 {
51  // Private data
52  //- reference to the meshSurfaceEngine
54 
55  //- Disallow default bitwise copy construct
57 
58  //- Disallow default bitwise assignment
60 
61 public:
62 
63  // Constructors
64 
65  //- Construct from reference to meshSurfaceEngine
67 
68  //- Construct from const reference to meshSurfaceEngine
69  meshSurfaceEngineModifier(const meshSurfaceEngine& surfaceEngine);
70 
71  // Destructor
72 
74 
75  // Member Functions
76 
77  //- relocate the selected boundary vertex
78  void moveBoundaryVertexNoUpdate(const label bpI, const point& newP);
79 
80  //- relocate the selected boundary vertex and update geometry data
81  void moveBoundaryVertex(const label bpI, const point& newP);
82 
83  //- update normals of boundary vertices at processor boundaries
84  inline void updateVertexNormals()
85  {
88  }
89 
90  //- updates faceCentres, face normal, and point normals
91  //- of the boundary faces attached to the selected boundary points
92  void updateGeometry(const labelLongList&);
93  void updateGeometry();
94 
95  //- makes sure that all surface vertices at parallel boundaries
96  //- have the same coordinates
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace Foam
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
Foam::meshSurfaceEngineModifier::surfaceEngine_
meshSurfaceEngine & surfaceEngine_
reference to the meshSurfaceEngine
Definition: meshSurfaceEngineModifier.H:52
Foam::meshSurfaceEngine::updatePointNormalsAtProcBoundaries
void updatePointNormalsAtProcBoundaries() const
Definition: meshSurfaceEngineCalculateBoundaryNodesAndFaces.C:803
Foam::meshSurfaceEngineModifier::updateVertexNormals
void updateVertexNormals()
update normals of boundary vertices at processor boundaries
Definition: meshSurfaceEngineModifier.H:83
Foam::meshSurfaceEngineModifier::~meshSurfaceEngineModifier
~meshSurfaceEngineModifier()
Definition: meshSurfaceEngineModifier.C:62
Foam::LongList< label >
Foam::meshSurfaceEngineModifier
Definition: meshSurfaceEngineModifier.H:48
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::meshSurfaceEngineModifier::moveBoundaryVertexNoUpdate
void moveBoundaryVertexNoUpdate(const label bpI, const point &newP)
relocate the selected boundary vertex
Definition: meshSurfaceEngineModifier.C:68
Foam::meshSurfaceEngineModifier::moveBoundaryVertex
void moveBoundaryVertex(const label bpI, const point &newP)
relocate the selected boundary vertex and update geometry data
Definition: meshSurfaceEngineModifier.C:77
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::meshSurfaceEngineModifier::updateGeometry
void updateGeometry()
Definition: meshSurfaceEngineModifier.C:433
meshSurfaceEngine.H
Foam::meshSurfaceEngineModifier::operator=
void operator=(const meshSurfaceEngineModifier &)
Disallow default bitwise assignment.
Foam::Vector< scalar >
Foam::meshSurfaceEngine::pointNormalsPtr_
vectorField * pointNormalsPtr_
point normals
Definition: meshSurfaceEngine.H:107
Foam::meshSurfaceEngine
Definition: meshSurfaceEngine.H:54
Foam::meshSurfaceEngineModifier::syncVerticesAtParallelBoundaries
void syncVerticesAtParallelBoundaries()
Definition: meshSurfaceEngineModifier.C:160
Foam::meshSurfaceEngineModifier::meshSurfaceEngineModifier
meshSurfaceEngineModifier(const meshSurfaceEngineModifier &)
Disallow default bitwise copy construct.