projectFace.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2016 OpenFOAM Foundation
9 Copyright (C) 2019 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::blockFaces::projectFace
29
30Description
31 Projects the given set of face points onto the selected surface of the
32 geometry provided as a searchableSurfaces object.
33
34SourceFiles
35 projectFace.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef blockFaces_projectFace_H
40#define blockFaces_projectFace_H
41
42#include "blockFace.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace blockFaces
49{
50
51/*---------------------------------------------------------------------------*\
52 Class projectFace Declaration
53\*---------------------------------------------------------------------------*/
55class projectFace
56:
57 public blockFace
58{
59 // Private Data
60
61 //- The surface onto which the points are projected
62 const searchableSurface& surface_;
63
64
65 // Private Member Functions
66
67 const searchableSurface& lookupSurface
68 (
69 const searchableSurfaces& geometry,
70 Istream& is
71 ) const;
72
73 //- Convert i,j to single index
74 static label index(const labelPair& n, const labelPair& coord);
75
76 //- Calculate lambdas (but unnormalised)
77 void calcLambdas
78 (
79 const labelPair& n,
80 const pointField& points,
81 scalarField& lambdaI,
82 scalarField& lambdaJ
83 ) const;
84
85 //- No copy construct
86 projectFace(const projectFace&) = delete;
87
88 //- No copy assignment
89 void operator=(const projectFace&) = delete;
90
91
92public:
93
94 //- Runtime type information
95 TypeName("project");
96
97
98 // Constructors
99
100 //- Construct from Istream setting pointsList
102 (
103 const dictionary& dict,
104 const label index,
105 const searchableSurfaces& geometry,
106 Istream& is
107 );
108
109
110 //- Destructor
111 virtual ~projectFace() = default;
112
113
114 // Member Functions
115
116 //- Project the given points onto the surface
117 virtual void project
118 (
119 const blockDescriptor&,
120 const label blockFacei,
122 ) const;
123};
124
125
126// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127
128} // End namespace blockFaces
129} // End namespace Foam
130
131// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132
133#endif
134
135// ************************************************************************* //
label n
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
Takes the description of the block and the list of curved edges and creates a list of points on edges...
Define a curved face.
Definition: blockFace.H:58
Projects the given set of face points onto the selected surface of the geometry provided as a searcha...
Definition: projectFace.H:57
TypeName("project")
Runtime type information.
virtual ~projectFace()=default
Destructor.
virtual void project(const blockDescriptor &, const label blockFacei, pointField &points) const
Project the given points onto the surface.
Definition: projectFace.C:149
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
const pointField & points
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73