Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 #ifndef mapDistributeLagrangian_H
00036 #define mapDistributeLagrangian_H
00037 
00038 #include <OpenFOAM/mapDistribute.H>
00039 
00040 
00041 
00042 namespace Foam
00043 {
00044 
00045 class mapPolyMesh;
00046 
00047 
00048 
00049 
00050 
00051 class mapDistributeLagrangian
00052 {
00053     
00054 
00055         
00056         const mapDistribute particleMap_;
00057 
00058         
00059         const labelListList constructCellLabels_;
00060 
00061 
00062 public:
00063 
00064     
00065 
00066         
00067         mapDistributeLagrangian
00068         (
00069             const label nNewParticles,
00070             const labelListList& subParticleMap,
00071             const labelListList& constructParticleMap,
00072             const labelListList& constructCellLabels
00073         )
00074         :
00075             particleMap_(nNewParticles, subParticleMap, constructParticleMap),
00076             constructCellLabels_(constructCellLabels)
00077         {}
00078 
00079         
00080         mapDistributeLagrangian
00081         (
00082             const label nNewParticles,
00083             labelListList& subParticleMap,
00084             labelListList& constructParticleMap,
00085             labelListList& constructCellLabels,
00086             const bool reUse
00087         )
00088         :
00089             particleMap_
00090             (
00091                 nNewParticles,
00092                 subParticleMap,
00093                 constructParticleMap,
00094                 reUse
00095             ),
00096             constructCellLabels_(constructCellLabels, reUse)
00097         {}
00098 
00099 
00100     
00101 
00102         
00103 
00104             
00105             const mapDistribute& particleMap() const
00106             {
00107                 return particleMap_;
00108             }
00109 
00110             
00111             const labelListList& constructCellLabels() const
00112             {
00113                 return constructCellLabels_;
00114             }
00115 
00116 
00117         
00118 
00119             
00120             template<class T>
00121             void distributeLagrangianData(List<T>& lst) const
00122             {
00123                 particleMap_.distribute(lst);
00124             }
00125 
00126             
00127             void updateMesh(const mapPolyMesh&)
00128             {
00129                 notImplemented
00130                 (
00131                     "mapDistributeLagrangian::updateMesh(const mapPolyMesh&)"
00132                 );
00133             }
00134 };
00135 
00136 
00137 
00138 
00139 } 
00140 
00141 
00142 
00143 #endif
00144 
00145