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