interactionLists.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 #ifndef interactionLists_H
00038 #define interactionLists_H
00039
00040 #include "polyMesh.H"
00041 #include "vector2D.H"
00042 #include "directInteractionList.H"
00043 #include "referredCell.H"
00044 #include "referredCellList.H"
00045 #include "sendingReferralList.H"
00046 #include "receivingReferralList.H"
00047
00048
00049
00050
00051 namespace Foam
00052 {
00053
00054
00055
00056
00057
00058 class interactionLists
00059 {
00060
00061
00062 const polyMesh& mesh_;
00063
00064 scalar rCutMaxSqr_;
00065
00066 directInteractionList dil_;
00067
00068 referredCellList ril_;
00069
00070 List<sendingReferralList> cellSendingReferralLists_;
00071
00072 List<receivingReferralList> cellReceivingReferralLists_;
00073
00074
00075
00076
00077
00078
00079 void buildCellReferralLists();
00080
00081
00082 interactionLists(const interactionLists&);
00083
00084
00085 void operator=(const interactionLists&);
00086
00087
00088 public:
00089
00090
00091
00092
00093 static scalar transTol;
00094
00095
00096
00097
00098
00099 interactionLists
00100 (
00101 const polyMesh& mesh,
00102 scalar rCutMaxSqr,
00103 bool pointPointListBuild = false
00104 );
00105
00106
00107 interactionLists(const polyMesh& mesh);
00108
00109
00110
00111
00112 ~interactionLists();
00113
00114
00115
00116
00117 bool testPointPointDistance
00118 (
00119 const label ptI,
00120 const label ptJ
00121 ) const;
00122
00123 bool testPointFaceDistance
00124 (
00125 const label p,
00126 const label faceNo
00127 ) const;
00128
00129 bool testPointFaceDistance
00130 (
00131 const label p,
00132 const referredCell& refCell
00133 ) const;
00134
00135 bool testPointFaceDistance
00136 (
00137 const vectorList& pointsToTest,
00138 const label faceNo
00139 ) const;
00140
00141 bool testPointFaceDistance
00142 (
00143 const vector& p,
00144 const label faceNo
00145 ) const;
00146
00147 bool testPointFaceDistance
00148 (
00149 const vector& p,
00150 const labelList& faceToTest,
00151 const vectorList& points,
00152 const vector& faceC,
00153 const vector& faceA
00154 ) const;
00155
00156 bool testEdgeEdgeDistance
00157 (
00158 const edge& eI,
00159 const edge& eJ
00160 ) const;
00161
00162 bool testEdgeEdgeDistance
00163 (
00164 const edge& eI,
00165 const vector& eJs,
00166 const vector& eJe
00167 ) const;
00168
00169 const labelList realCellsInRangeOfSegment
00170 (
00171 const labelList& segmentFaces,
00172 const labelList& segmentEdges,
00173 const labelList& segmentPoints
00174 ) const;
00175
00176 const labelList referredCellsInRangeOfSegment
00177 (
00178 const List<referredCell>& referredInteractionList,
00179 const labelList& segmentFaces,
00180 const labelList& segmentEdges,
00181 const labelList& segmentPoints
00182 ) const;
00183
00184
00185
00186
00187 inline const polyMesh& mesh() const;
00188
00189 inline const directInteractionList& dil() const;
00190
00191 inline const referredCellList& ril() const;
00192 inline referredCellList& ril();
00193
00194 inline const List<sendingReferralList>&
00195 cellSendingReferralLists() const;
00196
00197 inline const List<receivingReferralList>&
00198 cellReceivingReferralLists() const;
00199
00200 inline label nInteractingProcs() const;
00201 };
00202
00203
00204
00205
00206 }
00207
00208
00209
00210 #include "interactionListsI.H"
00211
00212
00213
00214 #endif
00215
00216
Copyright © 2000-2009 OpenCFD Ltd