1 /*---------------------------------------------------------------------------* \
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
32 \*---------------------------------------------------------------------------*/
37 #include "passiveParticleCloud.H"
38 #include "sampledSet.H"
39 #include "DynamicList.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class uniformSet Declaration
48 \*---------------------------------------------------------------------------*/
65 // Private Member Functions
67 //- Calculates - starting at samplePt - the first sampling point
68 // on or after currentPt. smallDist is the tolerance used to compare
69 // positions. Returns false if end of samples reached.
72 const point& currentPt,
74 const scalar smallDist,
79 //- Samples from startTrackPt/CellI. Updates particle/samplePt/sampleI
81 // samples in the DynamicLists. Returns false if end of all samples
85 passiveParticle& singleParticle,
88 DynamicList<point>& samplingPts,
89 DynamicList<label>& samplingCells,
90 DynamicList<label>& samplingFaces,
91 DynamicList<scalar>& samplingCurveDist
94 //- Samples from start_ to end_. samplingSegments contains segmentNo
98 DynamicList<point>& samplingPts,
99 DynamicList<label>& samplingCells,
100 DynamicList<label>& samplingFaces,
101 DynamicList<label>& samplingSegments,
102 DynamicList<scalar>& samplingCurveDist
105 //- Uses calcSamples to obtain samples. Copies them into *this.
111 //- Runtime type information
116 //- Construct from components
120 const polyMesh& mesh,
121 meshSearch& searchEngine,
128 //- Construct from dictionary
132 const polyMesh& mesh,
133 meshSearch& searchEngine,
134 const dictionary& dict
139 virtual ~uniformSet();
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 } // End namespace Foam
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //