wallPoint.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 wallPoint_H
00039 #define wallPoint_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 class wallPoint;
00055
00056
00057 Ostream& operator<<(Ostream&, const wallPoint&);
00058 Istream& operator>>(Istream&, wallPoint&);
00059
00060
00061
00062
00063
00064
00065 class wallPoint
00066 {
00067
00068
00069
00070 point origin_;
00071
00072
00073 scalar distSqr_;
00074
00075
00076
00077
00078
00079
00080 inline bool update
00081 (
00082 const point&,
00083 const wallPoint& w2,
00084 const scalar tol
00085 );
00086
00087
00088 public:
00089
00090
00091
00092
00093 static point greatPoint;
00094
00095
00096
00097
00098
00099 inline wallPoint();
00100
00101
00102 inline wallPoint
00103 (
00104 const point& origin,
00105 const scalar distSqr
00106 );
00107
00108
00109 inline wallPoint
00110 (
00111 const wallPoint&
00112 );
00113
00114
00115
00116
00117
00118
00119 inline const point& origin() const;
00120
00121 inline point& origin();
00122
00123 inline scalar distSqr() const;
00124
00125 inline scalar& distSqr();
00126
00127
00128
00129
00130
00131
00132 inline bool valid() const;
00133
00134
00135 inline bool sameGeometry
00136 (
00137 const polyMesh&,
00138 const wallPoint&,
00139 const scalar
00140 ) const;
00141
00142
00143
00144 inline void leaveDomain
00145 (
00146 const polyMesh&,
00147 const polyPatch&,
00148 const label patchFaceI,
00149 const point& faceCentre
00150 );
00151
00152
00153 inline void enterDomain
00154 (
00155 const polyMesh&,
00156 const polyPatch&,
00157 const label patchFaceI,
00158 const point& faceCentre
00159 );
00160
00161
00162 inline void transform
00163 (
00164 const polyMesh&,
00165 const tensor&
00166 );
00167
00168
00169 inline bool updateCell
00170 (
00171 const polyMesh&,
00172 const label thisCellI,
00173 const label neighbourFaceI,
00174 const wallPoint& neighbourInfo,
00175 const scalar tol
00176 );
00177
00178
00179 inline bool updateFace
00180 (
00181 const polyMesh&,
00182 const label thisFaceI,
00183 const label neighbourCellI,
00184 const wallPoint& neighbourInfo,
00185 const scalar tol
00186 );
00187
00188
00189 inline bool updateFace
00190 (
00191 const polyMesh&,
00192 const label thisFaceI,
00193 const wallPoint& neighbourInfo,
00194 const scalar tol
00195 );
00196
00197
00198
00199
00200
00201 inline bool operator==(const wallPoint&) const;
00202 inline bool operator!=(const wallPoint&) const;
00203
00204
00205
00206
00207 friend Ostream& operator<<(Ostream&, const wallPoint&);
00208 friend Istream& operator>>(Istream&, wallPoint&);
00209 };
00210
00211
00212
00213
00214 }
00215
00216
00217
00218 #include "wallPointI.H"
00219
00220
00221
00222 #endif
00223
00224
Copyright © 2000-2009 OpenCFD Ltd