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 pressureInletOutletVelocityFvPatchVectorField_H
00036 #define pressureInletOutletVelocityFvPatchVectorField_H
00037
00038 #include "fvPatchFields.H"
00039 #include "directionMixedFvPatchFields.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 class pressureInletOutletVelocityFvPatchVectorField
00051 :
00052 public directionMixedFvPatchVectorField
00053 {
00054
00055
00056 word phiName_;
00057
00058
00059 vectorField tangentialVelocity_;
00060
00061
00062 public:
00063
00064
00065 TypeName("pressureInletOutletVelocity");
00066
00067
00068
00069
00070
00071 pressureInletOutletVelocityFvPatchVectorField
00072 (
00073 const fvPatch&,
00074 const DimensionedField<vector, volMesh>&
00075 );
00076
00077
00078 pressureInletOutletVelocityFvPatchVectorField
00079 (
00080 const fvPatch&,
00081 const DimensionedField<vector, volMesh>&,
00082 const dictionary&
00083 );
00084
00085
00086
00087 pressureInletOutletVelocityFvPatchVectorField
00088 (
00089 const pressureInletOutletVelocityFvPatchVectorField&,
00090 const fvPatch&,
00091 const DimensionedField<vector, volMesh>&,
00092 const fvPatchFieldMapper&
00093 );
00094
00095
00096 pressureInletOutletVelocityFvPatchVectorField
00097 (
00098 const pressureInletOutletVelocityFvPatchVectorField&
00099 );
00100
00101
00102 virtual tmp<fvPatchVectorField> clone() const
00103 {
00104 return tmp<fvPatchVectorField>
00105 (
00106 new pressureInletOutletVelocityFvPatchVectorField(*this)
00107 );
00108 }
00109
00110
00111 pressureInletOutletVelocityFvPatchVectorField
00112 (
00113 const pressureInletOutletVelocityFvPatchVectorField&,
00114 const DimensionedField<vector, volMesh>&
00115 );
00116
00117
00118 virtual tmp<fvPatchVectorField> clone
00119 (
00120 const DimensionedField<vector, volMesh>& iF
00121 ) const
00122 {
00123 return tmp<fvPatchVectorField>
00124 (
00125 new pressureInletOutletVelocityFvPatchVectorField(*this, iF)
00126 );
00127 }
00128
00129
00130
00131
00132
00133
00134
00135 const word& phiName() const
00136 {
00137 return phiName_;
00138 }
00139
00140
00141 word& phiName()
00142 {
00143 return phiName_;
00144 }
00145
00146
00147 const vectorField& tangentialVelocity() const
00148 {
00149 return tangentialVelocity_;
00150 }
00151
00152
00153 void setTangentialVelocity(const vectorField& tangentialVelocity);
00154
00155
00156
00157
00158
00159 virtual void autoMap
00160 (
00161 const fvPatchFieldMapper&
00162 );
00163
00164
00165 virtual void rmap
00166 (
00167 const fvPatchVectorField&,
00168 const labelList&
00169 );
00170
00171
00172
00173 virtual void updateCoeffs();
00174
00175
00176 virtual void write(Ostream&) const;
00177
00178
00179
00180
00181 virtual void operator=(const fvPatchField<vector>& pvf);
00182 };
00183
00184
00185
00186
00187 }
00188
00189
00190
00191 #endif
00192
00193
Copyright © 2000-2007 OpenCFD Ltd