valuePointPatchField.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 valuePointPatchField_H
00037 #define valuePointPatchField_H
00038
00039 #include "pointPatchField.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 template<class Type>
00051 class valuePointPatchField
00052 :
00053 public pointPatchField<Type>,
00054 public Field<Type>
00055 {
00056
00057
00058 void checkFieldSize() const;
00059
00060
00061 public:
00062
00063
00064 TypeName("value");
00065
00066
00067
00068
00069
00070 valuePointPatchField
00071 (
00072 const pointPatch&,
00073 const DimensionedField<Type, pointMesh>&
00074 );
00075
00076
00077 valuePointPatchField
00078 (
00079 const pointPatch&,
00080 const DimensionedField<Type, pointMesh>&,
00081 const dictionary&,
00082 const bool valueRequired=true
00083 );
00084
00085
00086 valuePointPatchField
00087 (
00088 const valuePointPatchField<Type>&,
00089 const pointPatch&,
00090 const DimensionedField<Type, pointMesh>&,
00091 const pointPatchFieldMapper&
00092 );
00093
00094
00095 virtual autoPtr<pointPatchField<Type> > clone() const
00096 {
00097 return autoPtr<pointPatchField<Type> >
00098 (
00099 new valuePointPatchField<Type>
00100 (
00101 *this
00102 )
00103 );
00104 }
00105
00106
00107 valuePointPatchField
00108 (
00109 const valuePointPatchField<Type>&,
00110 const DimensionedField<Type, pointMesh>&
00111 );
00112
00113
00114 virtual autoPtr<pointPatchField<Type> > clone
00115 (
00116 const DimensionedField<Type, pointMesh>& iF
00117 ) const
00118 {
00119 return autoPtr<pointPatchField<Type> >
00120 (
00121 new valuePointPatchField<Type>
00122 (
00123 *this,
00124 iF
00125 )
00126 );
00127 }
00128
00129
00130
00131
00132
00133
00134
00135 label size() const
00136 {
00137 return Field<Type>::size();
00138 }
00139
00140
00141
00142
00143
00144 virtual void autoMap
00145 (
00146 const pointPatchFieldMapper&
00147 );
00148
00149
00150
00151 virtual void rmap
00152 (
00153 const pointPatchField<Type>&,
00154 const labelList&
00155 );
00156
00157
00158
00159
00160
00161 virtual void updateCoeffs();
00162
00163
00164 virtual void evaluate
00165 (
00166 const Pstream::commsTypes commsType=Pstream::blocking
00167 );
00168
00169
00170
00171 virtual void write(Ostream&) const;
00172
00173
00174
00175
00176
00177
00178 virtual void operator=
00179 (
00180 const valuePointPatchField<Type>&
00181 );
00182
00183 virtual void operator=
00184 (
00185 const pointPatchField<Type>&
00186 );
00187
00188 virtual void operator=(const Field<Type>&);
00189 virtual void operator=(const Type&);
00190
00191
00192
00193
00194 virtual void operator==
00195 (
00196 const valuePointPatchField<Type>&
00197 );
00198
00199 virtual void operator==
00200 (
00201 const pointPatchField<Type>&
00202 );
00203
00204 virtual void operator==(const Field<Type>&);
00205 virtual void operator==(const Type&);
00206 };
00207
00208
00209
00210
00211
00212 template<class Type>
00213 tmp<Field<Type> > operator+
00214 (
00215 const valuePointPatchField<Type>& vsppf,
00216 const Type& t
00217 )
00218 {
00219 return static_cast<const Field<Type>&>(vsppf) + t;
00220 }
00221
00222
00223
00224
00225 }
00226
00227
00228
00229 #ifdef NoRepository
00230 # include "valuePointPatchField.C"
00231 #endif
00232
00233
00234
00235 #endif
00236
00237
Copyright © 2000-2009 OpenCFD Ltd