surfaceSlipDisplacementPointPatchVectorField.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
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #ifndef surfaceSlipDisplacementPointPatchVectorField_H
00055 #define surfaceSlipDisplacementPointPatchVectorField_H
00056
00057 #include "pointPatchFields.H"
00058 #include "searchableSurfaces.H"
00059
00060
00061
00062 namespace Foam
00063 {
00064
00065
00066
00067
00068
00069 class surfaceSlipDisplacementPointPatchVectorField
00070 :
00071 public pointPatchVectorField
00072 {
00073
00074 public:
00075
00076
00077
00078 enum projectMode
00079 {
00080 NEAREST,
00081 POINTNORMAL,
00082 FIXEDNORMAL
00083 };
00084
00085 private:
00086
00087
00088
00089
00090 static const NamedEnum<projectMode, 3> projectModeNames_;
00091
00092
00093 const dictionary surfacesDict_;
00094
00095
00096 const projectMode projectMode_;
00097
00098
00099 const vector projectDir_;
00100
00101
00102 const label wedgePlane_;
00103
00104
00105 const word frozenPointsZone_;
00106
00107
00108 mutable autoPtr<searchableSurfaces> surfacesPtr_;
00109
00110
00111
00112
00113
00114 void calcProjection(vectorField& displacement) const;
00115
00116
00117 void operator=(const surfaceSlipDisplacementPointPatchVectorField&);
00118
00119
00120 public:
00121
00122
00123 TypeName("surfaceSlipDisplacement");
00124
00125
00126
00127
00128
00129 surfaceSlipDisplacementPointPatchVectorField
00130 (
00131 const pointPatch&,
00132 const DimensionedField<vector, pointMesh>&
00133 );
00134
00135
00136 surfaceSlipDisplacementPointPatchVectorField
00137 (
00138 const pointPatch&,
00139 const DimensionedField<vector, pointMesh>&,
00140 const dictionary&
00141 );
00142
00143
00144 surfaceSlipDisplacementPointPatchVectorField
00145 (
00146 const surfaceSlipDisplacementPointPatchVectorField&,
00147 const pointPatch&,
00148 const DimensionedField<vector, pointMesh>&,
00149 const pointPatchFieldMapper&
00150 );
00151
00152
00153 surfaceSlipDisplacementPointPatchVectorField
00154 (
00155 const surfaceSlipDisplacementPointPatchVectorField&
00156 );
00157
00158
00159 virtual autoPtr<pointPatchVectorField> clone() const
00160 {
00161 return autoPtr<pointPatchVectorField>
00162 (
00163 new surfaceSlipDisplacementPointPatchVectorField
00164 (
00165 *this
00166 )
00167 );
00168 }
00169
00170
00171 surfaceSlipDisplacementPointPatchVectorField
00172 (
00173 const surfaceSlipDisplacementPointPatchVectorField&,
00174 const DimensionedField<vector, pointMesh>&
00175 );
00176
00177
00178 virtual autoPtr<pointPatchVectorField> clone
00179 (
00180 const DimensionedField<vector, pointMesh>& iF
00181 ) const
00182 {
00183 return autoPtr<pointPatchVectorField>
00184 (
00185 new surfaceSlipDisplacementPointPatchVectorField
00186 (
00187 *this,
00188 iF
00189 )
00190 );
00191 }
00192
00193
00194
00195
00196 const searchableSurfaces& surfaces() const;
00197
00198
00199 virtual void evaluate
00200 (
00201 const Pstream::commsTypes commsType=Pstream::blocking
00202 );
00203
00204
00205 virtual void write(Ostream&) const;
00206 };
00207
00208
00209
00210
00211 }
00212
00213
00214
00215 #endif
00216
00217
Copyright © 2000-2009 OpenCFD Ltd