coordinateModifier.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  coordinateModifier
26 
27 Description
28  Base class for modification of point coordinates
29  in surface and volume meshes.
30 
31 SourceFiles
32  coordinateModifier.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef coordinateModifier_H
37 #define coordinateModifier_H
38 
39 #include "word.H"
40 #include "point.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 // Forward declarations
49 class boundBox;
50 
51 /*---------------------------------------------------------------------------*\
52  Class coordinateModifier Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 {
57  // Private data
58 
59  //- Reference to dictionary
61 
62  //- list of coordinate modification objects
64 
65  //- list of backward coordinate modifiers
67 
68  // Private member functions
69  //- check if the comibination of modifiers has a valid inverse
70  void checkForValidInverse() const;
71 
72 public:
73 
74  // Constructors
75 
76  //- Construct from dictionary
78 
79  // Destructor
80 
82 
83 
84  // Member Functions
85 
86  //- calculate the modified coordinate of the point
87  point modifiedPoint(const point&) const;
88 
89  //- calculate the displacement vector for the backward modification
90  point backwardModifiedPoint(const point&) const;
91 
92  //- Print modification objects
93  void printObjects() const;
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace Foam
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
Foam::coordinateModifier::modifiedPoint
point modifiedPoint(const point &) const
calculate the modified coordinate of the point
Definition: coordinateModifier.C:193
point.H
Foam::coordinateModifier::modifiers_
coordinateModificationList modifiers_
list of coordinate modification objects
Definition: coordinateModifier.H:62
Foam::coordinateModifier::coordinateModifier
coordinateModifier(const dictionary &)
Construct from dictionary.
Definition: coordinateModifier.C:146
Foam::PtrList< coordinateModification >
Foam::coordinateModifier::backwardModifiers_
coordinateModificationList backwardModifiers_
list of backward coordinate modifiers
Definition: coordinateModifier.H:65
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam::coordinateModifier::modificationDict_
const dictionary & modificationDict_
Reference to dictionary.
Definition: coordinateModifier.H:59
Foam::coordinateModifier::checkForValidInverse
void checkForValidInverse() const
check if the comibination of modifiers has a valid inverse
Definition: coordinateModifier.C:32
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
coordinateModificationList.H
Foam::Vector< scalar >
word.H
Foam::coordinateModifier
Definition: coordinateModifier.H:54
Foam::coordinateModifier::backwardModifiedPoint
point backwardModifiedPoint(const point &) const
calculate the displacement vector for the backward modification
Definition: coordinateModifier.C:205
Foam::coordinateModifier::printObjects
void printObjects() const
Print modification objects.
Definition: coordinateModifier.C:215
Foam::coordinateModifier::~coordinateModifier
~coordinateModifier()
Definition: coordinateModifier.C:187