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 #ifndef ComponentMixedPointPatchVectorField_H
00041 #define ComponentMixedPointPatchVectorField_H
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 template
00053 <
00054 template<class> class PatchField,
00055 class PointPatch
00056 >
00057 class ComponentMixedPointPatchVectorField
00058 :
00059 public PatchField<vector>
00060 {
00061
00062
00063
00064 vectorField refValue_;
00065
00066
00067 vectorField valueFraction_;
00068
00069
00070
00071
00072 void checkFieldSize() const;
00073
00074
00075 public:
00076
00077
00078 TypeName("componentMixed");
00079
00080
00081
00082
00083
00084 ComponentMixedPointPatchVectorField
00085 (
00086 const PointPatch&,
00087 const vectorField&
00088 );
00089
00090
00091
00092 ComponentMixedPointPatchVectorField
00093 (
00094 const PointPatch&,
00095 const vectorField&,
00096 const vectorField&,
00097 const vectorField&
00098 );
00099
00100
00101 ComponentMixedPointPatchVectorField
00102 (
00103 const PointPatch&,
00104 const vectorField&,
00105 const dictionary&
00106 );
00107
00108
00109 ComponentMixedPointPatchVectorField
00110 (
00111 const ComponentMixedPointPatchVectorField<PatchField, PointPatch>&,
00112 const PointPatch&,
00113 const vectorField&,
00114 const PointPatchFieldMapper&
00115 );
00116
00117
00118 virtual autoPtr<PatchField<vector> > clone() const
00119 {
00120 return autoPtr<PatchField<vector> >
00121 (
00122 new ComponentMixedPointPatchVectorField
00123 <PatchField, PointPatch>
00124 (
00125 *this
00126 )
00127 );
00128 }
00129
00130
00131 ComponentMixedPointPatchVectorField
00132 (
00133 const ComponentMixedPointPatchVectorField<PatchField, PointPatch>&,
00134 const vectorField&
00135 );
00136
00137
00138 virtual autoPtr<PatchField<vector> > clone(const vectorField& iF) const
00139 {
00140 return autoPtr<PatchField<vector> >
00141 (
00142 new ComponentMixedPointPatchVectorField
00143 <PatchField, PointPatch>
00144 (
00145 *this,
00146 iF
00147 )
00148 );
00149 }
00150
00151
00152
00153
00154
00155
00156 virtual vectorField& refValue()
00157 {
00158 return refValue_;
00159 }
00160
00161 virtual const vectorField& refValue() const
00162 {
00163 return refValue_;
00164 }
00165
00166
00167 virtual vectorField& valueFraction()
00168 {
00169 return valueFraction_;
00170 }
00171
00172 virtual const vectorField& valueFraction() const
00173 {
00174 return valueFraction_;
00175 }
00176
00177
00178
00179
00180
00181 virtual void autoMap
00182 (
00183 const PointPatchFieldMapper&
00184 );
00185
00186
00187
00188 virtual void rmap
00189 (
00190 const PointPatchField<PatchField, PointPatch, vector>&,
00191 const labelList&
00192 );
00193
00194
00195
00196
00197
00198 virtual void evaluate();
00199
00200
00201
00202 virtual void write(Ostream&) const;
00203
00204 };
00205
00206
00207
00208
00209 }
00210
00211
00212
00213 #ifdef NoRepository
00214 # include "ComponentMixedPointPatchVectorField.C"
00215 #endif
00216
00217
00218
00219 #endif
00220
00221