OpenFOAM-5.x/src/mesh/blockMesh/blockFaces/projectFace/projectFace.H
Henry Weller adb4fdd613 blockMesh: Added projected vertices and edges
Patch contributed by Mattijs Janssens

    - Added projected vertices
    - Added projected edges
    - Change of blockEdges API (operate on list lambdas)
    - Change of blockFaces API (pass in blockDescriptor and blockFacei)
    - Added sphere7ProjectedEdges tutorial to demonstrate vertex and edge projection
2016-10-18 14:06:23 +01:00

119 lines
3.1 KiB
C++

/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::blockFaces::projectFace
Description
Projects the given set of face points onto the selected surface of the
geometry provided as a searchableSurfaces object.
SourceFiles
projectFace.C
\*---------------------------------------------------------------------------*/
#ifndef blockFaces_projectFace_H
#define blockFaces_projectFace_H
#include "blockFace.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace blockFaces
{
/*---------------------------------------------------------------------------*\
Class projectFace Declaration
\*---------------------------------------------------------------------------*/
class projectFace
:
public blockFace
{
// Private data
//- The surface onto which the points are projected
const searchableSurface& surface_;
// Private Member Functions
const searchableSurface& lookupSurface
(
const searchableSurfaces& geometry,
Istream& is
) const;
//- Disallow default bitwise copy construct
projectFace(const projectFace&);
//- Disallow default bitwise assignment
void operator=(const projectFace&);
public:
//- Runtime type information
TypeName("project");
// Constructors
//- Construct from Istream setting pointsList
projectFace
(
const searchableSurfaces& geometry,
Istream&
);
//- Destructor
virtual ~projectFace()
{}
// Member Functions
//- Project the given points onto the surface
virtual void project
(
const blockDescriptor&,
const label blockFacei,
pointField& points
) const;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace blockFaces
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //