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