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 ProcessorPointPatchField_H
00036 #define ProcessorPointPatchField_H
00037
00038 #include "CoupledPointPatchField.H"
00039
00040
00041
00042 namespace Foam
00043 {
00044
00045
00046
00047
00048
00049 template
00050 <
00051 template<class> class PatchField,
00052 class PointPatch,
00053 class ProcessorPointPatch,
00054 class Type
00055 >
00056 class ProcessorPointPatchField
00057 :
00058 public CoupledPointPatchField<PatchField, PointPatch, Type>
00059 {
00060
00061
00062
00063 const ProcessorPointPatch& procPatch_;
00064
00065
00066
00067
00068
00069 template<class Type2>
00070 void sendPointField(const tmp<Field<Type2> >&) const;
00071
00072 template<class Type2>
00073 void sendEdgeField(const tmp<Field<Type2> >&) const;
00074
00075
00076
00077 template<class Type2>
00078 tmp<Field<Type2> > receivePointField() const;
00079
00080 template<class Type2>
00081 tmp<Field<Type2> > receiveEdgeField() const;
00082
00083
00084 template<class Type2>
00085 void initAddFieldTempl(const Field<Type2>&) const;
00086
00087 template<class Type2>
00088 void addFieldTempl(Field<Type2>&) const;
00089
00090
00091
00092 public:
00093
00094
00095 TypeName(ProcessorPointPatch::typeName_());
00096
00097
00098
00099
00100
00101 ProcessorPointPatchField
00102 (
00103 const PointPatch&,
00104 const Field<Type>&
00105 );
00106
00107
00108 ProcessorPointPatchField
00109 (
00110 const PointPatch&,
00111 const Field<Type>&,
00112 const dictionary&
00113 );
00114
00115
00116 ProcessorPointPatchField
00117 (
00118 const ProcessorPointPatchField
00119 <PatchField, PointPatch, ProcessorPointPatch, Type>&,
00120 const PointPatch&,
00121 const Field<Type>&,
00122 const PointPatchFieldMapper&
00123 );
00124
00125
00126 virtual autoPtr<PatchField<Type> > clone() const
00127 {
00128 return autoPtr<PatchField<Type> >
00129 (
00130 new ProcessorPointPatchField
00131 <PatchField, PointPatch, ProcessorPointPatch, Type>
00132 (
00133 *this
00134 )
00135 );
00136 }
00137
00138
00139 ProcessorPointPatchField
00140 (
00141 const ProcessorPointPatchField
00142 <PatchField, PointPatch, ProcessorPointPatch, Type>&,
00143 const Field<Type>&
00144 );
00145
00146
00147 virtual autoPtr<PatchField<Type> > clone(const Field<Type>& iF) const
00148 {
00149 return autoPtr<PatchField<Type> >
00150 (
00151 new ProcessorPointPatchField
00152 <PatchField, PointPatch, ProcessorPointPatch, Type>
00153 (
00154 *this,
00155 iF
00156 )
00157 );
00158 }
00159
00160
00161
00162
00163 ~ProcessorPointPatchField();
00164
00165
00166
00167
00168
00169
00170
00171 virtual void evaluate()
00172 {}
00173
00174
00175 virtual void initAddField() const;
00176
00177
00178 virtual void addField(Field<Type>&) const;
00179 };
00180
00181
00182
00183
00184 }
00185
00186
00187
00188 #ifdef NoRepository
00189 # include "ProcessorPointPatchField.C"
00190 #endif
00191
00192
00193
00194 #endif
00195
00196