wallNormalInfo.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 #ifndef wallNormalInfo_H
00039 #define wallNormalInfo_H
00040
00041 #include "point.H"
00042 #include "label.H"
00043 #include "scalar.H"
00044 #include "tensor.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052 class polyPatch;
00053 class polyMesh;
00054
00055
00056
00057
00058
00059 class wallNormalInfo
00060 {
00061
00062
00063
00064 vector normal_;
00065
00066
00067
00068
00069 inline bool update(const wallNormalInfo& w2);
00070
00071 public:
00072
00073
00074
00075
00076 static point greatVector;
00077
00078
00079
00080
00081 inline wallNormalInfo();
00082
00083
00084 inline wallNormalInfo(const vector& normal);
00085
00086
00087 inline wallNormalInfo(const wallNormalInfo&);
00088
00089
00090
00091
00092
00093 inline const vector& normal() const;
00094
00095
00096
00097
00098
00099
00100 inline bool valid() const;
00101
00102
00103 inline bool sameGeometry
00104 (
00105 const polyMesh&,
00106 const wallNormalInfo&,
00107 const scalar
00108 ) const;
00109
00110
00111
00112 inline void leaveDomain
00113 (
00114 const polyMesh&,
00115 const polyPatch&,
00116 const label patchFaceI,
00117 const point& faceCentre
00118 );
00119
00120
00121 inline void enterDomain
00122 (
00123 const polyMesh&,
00124 const polyPatch&,
00125 const label patchFaceI,
00126 const point& faceCentre
00127 );
00128
00129
00130 inline void transform
00131 (
00132 const polyMesh&,
00133 const tensor&
00134 );
00135
00136
00137 inline bool updateCell
00138 (
00139 const polyMesh&,
00140 const label thisCellI,
00141 const label neighbourFaceI,
00142 const wallNormalInfo& neighbourInfo,
00143 const scalar tol
00144 );
00145
00146
00147 inline bool updateFace
00148 (
00149 const polyMesh&,
00150 const label thisFaceI,
00151 const label neighbourCellI,
00152 const wallNormalInfo& neighbourInfo,
00153 const scalar tol
00154 );
00155
00156
00157 inline bool updateFace
00158 (
00159 const polyMesh&,
00160 const label thisFaceI,
00161 const wallNormalInfo& neighbourInfo,
00162 const scalar tol
00163 );
00164
00165
00166
00167
00168 inline bool operator==(const wallNormalInfo&) const;
00169
00170 inline bool operator!=(const wallNormalInfo&) const;
00171
00172
00173
00174
00175 friend Ostream& operator<<(Ostream&, const wallNormalInfo&);
00176 friend Istream& operator>>(Istream&, wallNormalInfo&);
00177 };
00178
00179
00180
00181
00182 }
00183
00184
00185
00186 #include "wallNormalInfoI.H"
00187
00188
00189
00190 #endif
00191
00192
Copyright © 2000-2009 OpenCFD Ltd