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 #include "polyMesh.H"
00030
00031
00032
00033
00034
00035
00036
00037 inline Foam::directionInfo::directionInfo()
00038 :
00039 index_(-3),
00040 n_(vector::zero)
00041 {}
00042
00043
00044
00045 inline Foam::directionInfo::directionInfo
00046 (
00047 const label index,
00048 const vector& n
00049 )
00050 :
00051 index_(index),
00052 n_(n)
00053 {}
00054
00055
00056
00057 inline Foam::directionInfo::directionInfo(const directionInfo& w2)
00058 :
00059 index_(w2.index()),
00060 n_(w2.n())
00061 {}
00062
00063
00064
00065
00066 inline bool Foam::directionInfo::valid() const
00067 {
00068 return index_ != -3;
00069 }
00070
00071
00072
00073 inline bool Foam::directionInfo::sameGeometry
00074 (
00075 const polyMesh&,
00076 const directionInfo& w2,
00077 const scalar tol
00078 )
00079 const
00080 {
00081 return true;
00082 }
00083
00084
00085
00086 inline void Foam::directionInfo::leaveDomain
00087 (
00088 const polyMesh&,
00089 const polyPatch& patch,
00090 const label patchFaceI,
00091 const point& faceCentre
00092 )
00093 {}
00094
00095
00096
00097
00098
00099
00100 inline void Foam::directionInfo::enterDomain
00101 (
00102 const polyMesh&,
00103 const polyPatch& patch,
00104 const label patchFaceI,
00105 const point& faceCentre
00106 )
00107 {
00108 if (index_ >= 0)
00109 {
00110 const face& f = patch[patchFaceI];
00111
00112 index_ = (f.size() - index_) % f.size();
00113 }
00114 }
00115
00116
00117
00118 inline void Foam::directionInfo::transform
00119 (
00120 const polyMesh&,
00121 const tensor& rotTensor
00122 )
00123 {}
00124
00125
00126
00127
00128 inline bool Foam::directionInfo::operator==(const Foam::directionInfo& rhs)
00129 const
00130 {
00131 return index() == rhs.index() && n() == rhs.n();
00132 }
00133
00134
00135 inline bool Foam::directionInfo::operator!=(const Foam::directionInfo& rhs)
00136 const
00137 {
00138 return !(*this == rhs);
00139 }
00140
00141
00142
Copyright © 2000-2007 OpenCFD Ltd