angularOscillatingDisplacementPointPatchVectorField.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 angularOscillatingDisplacementPointPatchVectorField_H
00037 #define angularOscillatingDisplacementPointPatchVectorField_H
00038
00039 #include "fixedValuePointPatchField.H"
00040
00041
00042
00043 namespace Foam
00044 {
00045
00046
00047
00048
00049
00050 class angularOscillatingDisplacementPointPatchVectorField
00051 :
00052 public fixedValuePointPatchField<vector>
00053 {
00054
00055
00056 vector axis_;
00057 vector origin_;
00058 scalar angle0_;
00059 scalar amplitude_;
00060 scalar omega_;
00061
00062 pointField p0_;
00063
00064
00065 public:
00066
00067
00068 TypeName("angularOscillatingDisplacement");
00069
00070
00071
00072
00073
00074 angularOscillatingDisplacementPointPatchVectorField
00075 (
00076 const pointPatch&,
00077 const DimensionedField<vector, pointMesh>&
00078 );
00079
00080
00081 angularOscillatingDisplacementPointPatchVectorField
00082 (
00083 const pointPatch&,
00084 const DimensionedField<vector, pointMesh>&,
00085 const dictionary&
00086 );
00087
00088
00089 angularOscillatingDisplacementPointPatchVectorField
00090 (
00091 const angularOscillatingDisplacementPointPatchVectorField&,
00092 const pointPatch&,
00093 const DimensionedField<vector, pointMesh>&,
00094 const pointPatchFieldMapper&
00095 );
00096
00097
00098 virtual autoPtr<pointPatchField<vector> > clone() const
00099 {
00100 return autoPtr<pointPatchField<vector> >
00101 (
00102 new angularOscillatingDisplacementPointPatchVectorField
00103 (
00104 *this
00105 )
00106 );
00107 }
00108
00109
00110 angularOscillatingDisplacementPointPatchVectorField
00111 (
00112 const angularOscillatingDisplacementPointPatchVectorField&,
00113 const DimensionedField<vector, pointMesh>&
00114 );
00115
00116
00117 virtual autoPtr<pointPatchField<vector> > clone
00118 (
00119 const DimensionedField<vector, pointMesh>& iF
00120 ) const
00121 {
00122 return autoPtr<pointPatchField<vector> >
00123 (
00124 new angularOscillatingDisplacementPointPatchVectorField
00125 (
00126 *this,
00127 iF
00128 )
00129 );
00130 }
00131
00132
00133
00134
00135
00136
00137
00138 virtual void updateCoeffs();
00139
00140
00141
00142 virtual void write(Ostream&) const;
00143 };
00144
00145
00146
00147
00148 }
00149
00150
00151
00152 #endif
00153
00154
Copyright © 2000-2009 OpenCFD Ltd