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