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