1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM 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 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM 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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Basic pointPatch represents a set of points from the mesh.
34 \*---------------------------------------------------------------------------*/
39 #include "labelList.H"
40 #include "vectorField.H"
41 #include "triFaceList.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
50 class pointBoundaryMesh;
51 class pointConstraint;
53 /*---------------------------------------------------------------------------*\
54 Class pointPatch Declaration
55 \*---------------------------------------------------------------------------*/
61 //- Reference to boundary mesh
62 const pointBoundaryMesh& boundaryMesh_;
65 // Private Member Functions
67 //- Disallow default bitwise copy construct
68 pointPatch(const pointPatch&);
70 //- Disallow default bitwise assignment
71 void operator=(const pointPatch&);
76 // Protected Member Functions
78 // The pointPatch geometry initialisation is called by pointBoundaryMesh
79 friend class pointBoundaryMesh;
81 //- Initialise the calculation of the patch geometry
82 virtual void initGeometry()
85 //- Calculate the patch geometry
86 virtual void calcGeometry()
89 //- Initialise the patches for moving points
90 virtual void initMovePoints(const pointField&)
93 //- Correct patches after moving points
94 virtual void movePoints(const pointField&)
97 //- Initialise the update of the patch topology
98 virtual void initUpdateMesh()
101 //- Update of the patch topology
102 virtual void updateMesh()
108 //- Runtime type information
109 TypeName("basePatch");
116 const pointBoundaryMesh& bm
125 virtual ~pointPatch()
132 virtual const word& name() const = 0;
135 virtual label size() const = 0;
137 //- Return the index of this patch in the pointBoundaryMesh
138 virtual label index() const = 0;
140 //- Return boundaryMesh reference
141 const pointBoundaryMesh& boundaryMesh() const
143 return boundaryMesh_;
146 //- Return true if this patch field is coupled
147 virtual bool coupled() const
152 //- Return mesh points
153 virtual const labelList& meshPoints() const = 0;
155 //- Return mesh points
156 virtual const vectorField& localPoints() const = 0;
158 //- Return point normals
159 virtual const vectorField& pointNormals() const = 0;
161 //- Accumulate the effect of constraint direction of this patch
162 virtual void applyConstraint
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 } // End namespace Foam
175 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 // ************************************************************************* //