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 DimensionedField<vector, pointMesh>&
00088 );
00089
00090
00091 ComponentMixedPointPatchVectorField
00092 (
00093 const PointPatch&,
00094 const DimensionedField<vector, pointMesh>&,
00095 const dictionary&
00096 );
00097
00098
00099 ComponentMixedPointPatchVectorField
00100 (
00101 const ComponentMixedPointPatchVectorField<PatchField, PointPatch>&,
00102 const PointPatch&,
00103 const DimensionedField<vector, pointMesh>&,
00104 const PointPatchFieldMapper&
00105 );
00106
00107
00108 virtual autoPtr<PatchField<vector> > clone() const
00109 {
00110 return autoPtr<PatchField<vector> >
00111 (
00112 new ComponentMixedPointPatchVectorField
00113 <PatchField, PointPatch>
00114 (
00115 *this
00116 )
00117 );
00118 }
00119
00120
00121 ComponentMixedPointPatchVectorField
00122 (
00123 const ComponentMixedPointPatchVectorField<PatchField, PointPatch>&,
00124 const DimensionedField<vector, pointMesh>&
00125 );
00126
00127
00128 virtual autoPtr<PatchField<vector> > clone
00129 (
00130 const DimensionedField<vector, pointMesh>& iF
00131 ) const
00132 {
00133 return autoPtr<PatchField<vector> >
00134 (
00135 new ComponentMixedPointPatchVectorField
00136 <PatchField, PointPatch>
00137 (
00138 *this,
00139 iF
00140 )
00141 );
00142 }
00143
00144
00145
00146
00147
00148
00149 virtual vectorField& refValue()
00150 {
00151 return refValue_;
00152 }
00153
00154 virtual const vectorField& refValue() const
00155 {
00156 return refValue_;
00157 }
00158
00159
00160 virtual vectorField& valueFraction()
00161 {
00162 return valueFraction_;
00163 }
00164
00165 virtual const vectorField& valueFraction() const
00166 {
00167 return valueFraction_;
00168 }
00169
00170
00171
00172
00173
00174 virtual void autoMap
00175 (
00176 const PointPatchFieldMapper&
00177 );
00178
00179
00180
00181 virtual void rmap
00182 (
00183 const PointPatchField<PatchField, PointPatch, vector>&,
00184 const labelList&
00185 );
00186
00187
00188
00189
00190
00191 virtual void evaluate();
00192
00193
00194
00195 virtual void write(Ostream&) const;
00196
00197 };
00198
00199
00200
00201
00202 }
00203
00204
00205
00206 #ifdef NoRepository
00207 # include "ComponentMixedPointPatchVectorField.C"
00208 #endif
00209
00210
00211
00212 #endif
00213
00214
Copyright © 2000-2007 OpenCFD Ltd