pointFieldDecomposer.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
00037 #ifndef pointFieldDecomposer_H
00038 #define pointFieldDecomposer_H
00039
00040 #include "pointMesh.H"
00041 #include "pointPatchFieldMapperPatchRef.H"
00042 #include "pointFields.H"
00043
00044
00045
00046 namespace Foam
00047 {
00048
00049
00050
00051
00052
00053 class pointFieldDecomposer
00054 {
00055
00056 public:
00057
00058
00059 class patchFieldDecomposer
00060 :
00061 public pointPatchFieldMapperPatchRef
00062 {
00063
00064
00065 labelList directAddressing_;
00066
00067 public:
00068
00069
00070
00071
00072 patchFieldDecomposer
00073 (
00074 const pointPatch& completeMeshPatch,
00075 const pointPatch& procMeshPatch,
00076 const labelList& directAddr
00077 );
00078
00079
00080
00081
00082 label size() const
00083 {
00084 return directAddressing_.size();
00085 }
00086
00087 bool direct() const
00088 {
00089 return true;
00090 }
00091
00092 const unallocLabelList& directAddressing() const
00093 {
00094 return directAddressing_;
00095 }
00096 };
00097
00098
00099 private:
00100
00101
00102
00103
00104 const pointMesh& completeMesh_;
00105
00106
00107 const pointMesh& procMesh_;
00108
00109
00110 const labelList& pointAddressing_;
00111
00112
00113 const labelList& boundaryAddressing_;
00114
00115
00116 List<patchFieldDecomposer*> patchFieldDecomposerPtrs_;
00117
00118
00119
00120
00121
00122 pointFieldDecomposer(const pointFieldDecomposer&);
00123
00124
00125 void operator=(const pointFieldDecomposer&);
00126
00127
00128 public:
00129
00130
00131
00132
00133 pointFieldDecomposer
00134 (
00135 const pointMesh& completeMesh,
00136 const pointMesh& procMesh,
00137 const labelList& pointAddressing,
00138 const labelList& boundaryAddressing
00139 );
00140
00141
00142
00143
00144 ~pointFieldDecomposer();
00145
00146
00147
00148
00149
00150 template<class Type>
00151 tmp<GeometricField<Type, pointPatchField, pointMesh> >
00152 decomposeField
00153 (
00154 const GeometricField<Type, pointPatchField, pointMesh>&
00155 ) const;
00156
00157 template<class GeoField>
00158 void decomposeFields(const PtrList<GeoField>& fields) const;
00159 };
00160
00161
00162
00163
00164 }
00165
00166
00167
00168 #ifdef NoRepository
00169 # include "pointFieldDecomposerDecomposeFields.C"
00170 #endif
00171
00172
00173
00174 #endif
00175
00176
Copyright © 2000-2009 OpenCFD Ltd