mapDistributeLagrangian.H
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
00036 #ifndef mapDistributeLagrangian_H
00037 #define mapDistributeLagrangian_H
00038
00039 #include "mapDistribute.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046 class mapPolyMesh;
00047
00048
00049
00050
00051
00052 class mapDistributeLagrangian
00053 {
00054
00055
00056
00057 const mapDistribute particleMap_;
00058
00059
00060 const labelListList constructCellLabels_;
00061
00062
00063 public:
00064
00065
00066
00067
00068 mapDistributeLagrangian
00069 (
00070 const label nNewParticles,
00071 const labelListList& subParticleMap,
00072 const labelListList& constructParticleMap,
00073 const labelListList& constructCellLabels
00074 )
00075 :
00076 particleMap_(nNewParticles, subParticleMap, constructParticleMap),
00077 constructCellLabels_(constructCellLabels)
00078 {}
00079
00080
00081 mapDistributeLagrangian
00082 (
00083 const label nNewParticles,
00084 labelListList& subParticleMap,
00085 labelListList& constructParticleMap,
00086 labelListList& constructCellLabels,
00087 const bool reUse
00088 )
00089 :
00090 particleMap_
00091 (
00092 nNewParticles,
00093 subParticleMap,
00094 constructParticleMap,
00095 reUse
00096 ),
00097 constructCellLabels_(constructCellLabels, reUse)
00098 {}
00099
00100
00101
00102
00103
00104
00105
00106 const mapDistribute& particleMap() const
00107 {
00108 return particleMap_;
00109 }
00110
00111
00112 const labelListList& constructCellLabels() const
00113 {
00114 return constructCellLabels_;
00115 }
00116
00117
00118
00119
00120
00121 template<class T>
00122 void distributeLagrangianData(List<T>& lst) const
00123 {
00124 particleMap_.distribute(lst);
00125 }
00126
00127
00128 void updateMesh(const mapPolyMesh&)
00129 {
00130 notImplemented
00131 (
00132 "mapDistributeLagrangian::updateMesh(const mapPolyMesh&)"
00133 );
00134 }
00135 };
00136
00137
00138
00139
00140 }
00141
00142
00143
00144 #endif
00145
00146
Copyright © 2000-2009 OpenCFD Ltd