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