lduPrimitiveMesh.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 #ifndef lduPrimitiveMesh_H
00034 #define lduPrimitiveMesh_H
00035
00036 #include "lduMesh.H"
00037 #include "labelList.H"
00038
00039
00040
00041 namespace Foam
00042 {
00043
00044
00045
00046
00047
00048 class lduPrimitiveMesh
00049 :
00050 public lduMesh,
00051 public lduAddressing
00052 {
00053
00054
00055
00056 labelList lowerAddr_;
00057
00058
00059 labelList upperAddr_;
00060
00061
00062 labelListList patchAddr_;
00063
00064
00065
00066 lduInterfacePtrsList interfaces_;
00067
00068
00069
00070 const lduSchedule& patchSchedule_;
00071
00072
00073
00074
00075
00076 lduPrimitiveMesh(const lduPrimitiveMesh&);
00077
00078
00079 void operator=(const lduPrimitiveMesh&);
00080
00081
00082 public:
00083
00084
00085
00086
00087 lduPrimitiveMesh
00088 (
00089 const label nCells,
00090 const unallocLabelList& l,
00091 const unallocLabelList& u,
00092 const labelListList& pa,
00093 lduInterfacePtrsList interfaces,
00094 const lduSchedule& ps
00095 )
00096 :
00097 lduAddressing(nCells),
00098 lowerAddr_(l),
00099 upperAddr_(u),
00100 patchAddr_(pa),
00101 interfaces_(interfaces),
00102 patchSchedule_(ps)
00103 {}
00104
00105
00106
00107 lduPrimitiveMesh
00108 (
00109 const label nCells,
00110 labelList& l,
00111 labelList& u,
00112 labelListList& pa,
00113 lduInterfacePtrsList interfaces,
00114 const lduSchedule& ps,
00115 bool reUse
00116 )
00117 :
00118 lduAddressing(nCells),
00119 lowerAddr_(l, reUse),
00120 upperAddr_(u, reUse),
00121 patchAddr_(pa, reUse),
00122 interfaces_(interfaces, reUse),
00123 patchSchedule_(ps)
00124 {}
00125
00126
00127
00128
00129 virtual ~lduPrimitiveMesh()
00130 {}
00131
00132
00133
00134
00135
00136
00137
00138 virtual const lduAddressing& lduAddr() const
00139 {
00140 return *this;
00141 }
00142
00143
00144
00145 virtual lduInterfacePtrsList interfaces() const
00146 {
00147 return interfaces_;
00148 }
00149
00150
00151 virtual const unallocLabelList& lowerAddr() const
00152 {
00153 return lowerAddr_;
00154 }
00155
00156
00157 virtual const unallocLabelList& upperAddr() const
00158 {
00159 return upperAddr_;
00160 }
00161
00162
00163 virtual const unallocLabelList& patchAddr(const label i) const
00164 {
00165 return patchAddr_[i];
00166 }
00167
00168
00169 virtual const lduSchedule& patchSchedule() const
00170 {
00171 return patchSchedule_;
00172 }
00173 };
00174
00175
00176
00177
00178 }
00179
00180
00181
00182 #endif
00183
00184
Copyright © 2000-2009 OpenCFD Ltd