|
|
|
cloudSet.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::cloudSet 00027 00028 Description 00029 00030 SourceFiles 00031 cloudSet.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef cloudSet_H 00036 #define cloudSet_H 00037 00038 #include "sampledSet.H" 00039 #include "DynamicList.H" 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Forward declaration of classes 00047 class passiveParticle; 00048 template<class Type> class particle; 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class cloudSet Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class cloudSet 00055 : 00056 public sampledSet 00057 { 00058 // Private data 00059 00060 //- Sampling points 00061 List<point> sampleCoords_; 00062 00063 00064 // Private Member Functions 00065 00066 //- Samples all points in sampleCoords. 00067 void calcSamples 00068 ( 00069 DynamicList<point>& samplingPts, 00070 DynamicList<label>& samplingCells, 00071 DynamicList<label>& samplingFaces, 00072 DynamicList<label>& samplingSegments, 00073 DynamicList<scalar>& samplingCurveDist 00074 ) const; 00075 00076 //- Uses calcSamples to obtain samples. Copies them into *this. 00077 void genSamples(); 00078 00079 public: 00080 00081 //- Runtime type information 00082 TypeName("cloud"); 00083 00084 00085 // Constructors 00086 00087 //- Construct from components 00088 cloudSet 00089 ( 00090 const word& name, 00091 const polyMesh& mesh, 00092 meshSearch& searchEngine, 00093 const word& axis, 00094 const List<point>& sampleCoords 00095 ); 00096 00097 //- Construct from dictionary 00098 cloudSet 00099 ( 00100 const word& name, 00101 const polyMesh& mesh, 00102 meshSearch& searchEngine, 00103 const dictionary& dict 00104 ); 00105 00106 00107 // Destructor 00108 00109 virtual ~cloudSet(); 00110 00111 00112 // Member Functions 00113 00114 //- Get reference point 00115 virtual point getRefPoint(const List<point>&) const; 00116 }; 00117 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 } // End namespace Foam 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 #endif 00126 00127 // ************************************************************************* // |