fvFieldReconstructor.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 fvFieldReconstructor_H
00038 #define fvFieldReconstructor_H
00039
00040 #include "PtrList.H"
00041 #include "fvMesh.H"
00042 #include "IOobjectList.H"
00043 #include "fvPatchFieldMapper.H"
00044 #include "labelIOList.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053
00054
00055
00056 class fvFieldReconstructor
00057 {
00058
00059
00060
00061 fvMesh& mesh_;
00062
00063
00064 const PtrList<fvMesh>& procMeshes_;
00065
00066
00067 const PtrList<labelIOList>& faceProcAddressing_;
00068
00069
00070 const PtrList<labelIOList>& cellProcAddressing_;
00071
00072
00073 const PtrList<labelIOList>& boundaryProcAddressing_;
00074
00075
00076
00077
00078
00079 fvFieldReconstructor(const fvFieldReconstructor&);
00080
00081
00082 void operator=(const fvFieldReconstructor&);
00083
00084
00085 public:
00086
00087 class fvPatchFieldReconstructor
00088 :
00089 public fvPatchFieldMapper
00090 {
00091 label size_;
00092
00093 public:
00094
00095
00096
00097
00098 fvPatchFieldReconstructor(const label size)
00099 :
00100 size_(size)
00101 {}
00102
00103
00104
00105
00106 label size() const
00107 {
00108 return size_;
00109 }
00110
00111 bool direct() const
00112 {
00113 return true;
00114 }
00115
00116 const unallocLabelList& directAddressing() const
00117 {
00118 return unallocLabelList::null();
00119 }
00120 };
00121
00122
00123
00124
00125
00126 fvFieldReconstructor
00127 (
00128 fvMesh& mesh,
00129 const PtrList<fvMesh>& procMeshes,
00130 const PtrList<labelIOList>& faceProcAddressing,
00131 const PtrList<labelIOList>& cellProcAddressing,
00132 const PtrList<labelIOList>& boundaryProcAddressing
00133 );
00134
00135
00136
00137
00138
00139 template<class Type>
00140 tmp<GeometricField<Type, fvPatchField, volMesh> >
00141 reconstructFvVolumeField
00142 (
00143 const IOobject& fieldIoObject
00144 );
00145
00146
00147 template<class Type>
00148 tmp<GeometricField<Type, fvsPatchField, surfaceMesh> >
00149 reconstructFvSurfaceField
00150 (
00151 const IOobject& fieldIoObject
00152 );
00153
00154
00155 template<class Type>
00156 void reconstructFvVolumeFields
00157 (
00158 const IOobjectList& objects,
00159 const HashSet<word>& selectedFields
00160 );
00161
00162
00163 template<class Type>
00164 void reconstructFvSurfaceFields
00165 (
00166 const IOobjectList& objects,
00167 const HashSet<word>& selectedFields
00168 );
00169 };
00170
00171
00172
00173
00174 }
00175
00176
00177
00178 #ifdef NoRepository
00179 # include "fvFieldReconstructorReconstructFields.C"
00180 #endif
00181
00182
00183
00184 #endif
00185
00186
Copyright © 2000-2009 OpenCFD Ltd