A face is a list of labels corresponding to mesh vertices. More...
Classes | |
struct | hasher |
struct | symmHasher |
Public Types | |
enum | proxType { NONE = 0, POINT, EDGE } |
![]() | |
typedef SubList< T > | subList |
Public Member Functions | |
constexpr | face () noexcept=default |
face (const label sz) | |
face (const labelUList &list) | |
face (labelList &&list) | |
face (std::initializer_list< label > list) | |
template<unsigned N> | |
face (const FixedList< label, N > &list) | |
face (const labelUList &list, const labelUList &indices) | |
template<unsigned N> | |
face (const labelUList &list, const FixedList< label, N > &indices) | |
face (const triFace &f) | |
face (Istream &is) | |
label | collapse () |
void | flip () |
pointField | points (const UList< point > &pts) const |
point | centre (const UList< point > &points) const |
template<class Type > | |
Type | average (const UList< point > &meshPoints, const Field< Type > &fld) const |
vector | areaNormal (const UList< point > &p) const |
vector | unitNormal (const UList< point > &p) const |
FOAM_DEPRECATED_FOR (2018-12, "areaNormal() or unitNormal()") vector normal(const UList< point > &p) const | |
scalar | mag (const UList< point > &p) const |
face | reverseFace () const |
label | which (const label pointLabel) const |
label | thisLabel (const label i) const |
label | nextLabel (const label i) const |
label | prevLabel (const label i) const |
scalar | sweptVol (const UList< point > &oldPoints, const UList< point > &newPoints) const |
tensor | inertia (const UList< point > &p, const point &refPt=vector::zero, scalar density=1.0) const |
pointHit | ray (const point &p, const vector &n, const UList< point > &meshPoints, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const |
pointHit | intersection (const point &p, const vector &q, const point &ctr, const UList< point > &meshPoints, const intersection::algorithm alg, const scalar tol=0.0) const |
pointHit | nearestPoint (const point &p, const UList< point > &meshPoints) const |
pointHit | nearestPointClassify (const point &p, const UList< point > &meshPoints, label &nearType, label &nearLabel) const |
int | sign (const point &p, const UList< point > &points, const scalar tol=SMALL) const |
scalar | contactSphereDiameter (const point &p, const vector &n, const UList< point > &meshPoints) const |
scalar | areaInContact (const UList< point > &meshPoints, const scalarField &v) const |
label | nEdges () const noexcept |
Foam::edge | edge (const label edgei) const |
vector | edge (const label edgei, const UList< point > &pts) const |
Foam::edge | rcEdge (const label edgei) const |
vector | rcEdge (const label edgei, const UList< point > &pts) const |
edgeList | edges () const |
edgeList | rcEdges () const |
int | edgeDirection (const Foam::edge &e) const |
label | longestEdge (const UList< point > &pts) const |
label | nTriangles () const |
label | nTriangles (const UList< point > &unused) const |
label | triangles (const UList< point > &points, label &triI, faceList &triFaces) const |
template<int SizeMin> | |
label | triangles (const UList< point > &points, DynamicList< face, SizeMin > &triFaces) const |
label | nTrianglesQuads (const UList< point > &points, label &nTris, label &nQuads) const |
label | trianglesQuads (const UList< point > &points, label &triI, label &quadI, faceList &triFaces, faceList &quadFaces) const |
unsigned | hash_code (unsigned seed=0) const |
unsigned | symmhash_code (unsigned seed=0) const |
Foam::edge | faceEdge (label edgei) const |
template<int SizeMin> | |
Foam::label | triangles (const UList< point > &points, DynamicList< face, SizeMin > &triFaces) const |
![]() | |
constexpr | List () noexcept |
List (const label len) | |
List (const label len, const T &val) | |
List (const label len, const Foam::zero) | |
List (const Foam::one, const T &val) | |
List (const Foam::one, T &&val) | |
List (const Foam::one, const Foam::zero) | |
List (const List< T > &a) | |
List (const UList< T > &a) | |
List (List< T > &a, bool reuse) | |
List (const UList< T > &list, const labelUList &indices) | |
template<unsigned N> | |
List (const UList< T > &list, const FixedList< label, N > &indices) | |
template<unsigned N> | |
List (const FixedList< T, N > &list) | |
List (const PtrList< T > &list) | |
List (const SLList< T > &list) | |
template<class Addr > | |
List (const IndirectListBase< T, Addr > &list) | |
List (std::initializer_list< T > list) | |
List (List< T > &&list) | |
template<int SizeMin> | |
List (DynamicList< T, SizeMin > &&list) | |
List (SortableList< T > &&list) | |
List (SLList< T > &&list) | |
List (Istream &is) | |
autoPtr< List< T > > | clone () const |
~List () | |
void | clear () |
void | resize (const label len) |
void | resize (const label len, const T &val) |
void | resize_nocopy (const label len) |
void | setSize (const label n) |
void | setSize (const label n, const T &val) |
void | append (const T &val) |
void | append (T &&val) |
void | append (const UList< T > &list) |
template<class Addr > | |
void | append (const IndirectListBase< T, Addr > &list) |
label | appendUniq (const T &val) |
void | transfer (List< T > &list) |
template<int SizeMin> | |
void | transfer (DynamicList< T, SizeMin > &list) |
void | transfer (SortableList< T > &list) |
T & | newElmt (const label i) |
void | operator= (const UList< T > &a) |
void | operator= (const List< T > &list) |
void | operator= (const SLList< T > &list) |
template<class Addr > | |
void | operator= (const IndirectListBase< T, Addr > &list) |
template<unsigned N> | |
void | operator= (const FixedList< T, N > &list) |
void | operator= (std::initializer_list< T > list) |
void | operator= (const T &val) |
void | operator= (const Foam::zero) |
void | operator= (List< T > &&list) |
template<int SizeMin> | |
void | operator= (DynamicList< T, SizeMin > &&list) |
void | operator= (SortableList< T > &&list) |
void | operator= (SLList< T > &&list) |
Istream & | readList (Istream &is) |
void | shallowCopy (const UList< T > &)=delete |
template<class TypeT = T> | |
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type | set (const label i, bool val=true) |
template<class T > | |
List (const label len) | |
template<class T > | |
List (const label len, const T &val) | |
template<class T > | |
List (const label len, const Foam::zero) | |
template<class T > | |
List (const Foam::one, const T &val) | |
template<class T > | |
List (const Foam::one, T &&val) | |
template<class T > | |
List (const Foam::one, const Foam::zero) | |
template<class T > | |
List (const UList< T > &a) | |
template<class T > | |
List (const List< T > &a) | |
template<class T > | |
List (List< T > &a, bool reuse) | |
template<class T > | |
List (const UList< T > &list, const labelUList &indices) | |
template<class T > | |
List (const PtrList< T > &list) | |
template<class T > | |
List (const SLList< T > &list) | |
template<class T > | |
List (std::initializer_list< T > list) | |
template<class T > | |
List (List< T > &&list) | |
template<class T > | |
List (SortableList< T > &&list) | |
template<class T > | |
List (SLList< T > &&list) | |
template<class T > | |
void | transfer (List< T > &list) |
template<class T > | |
void | transfer (SortableList< T > &list) |
template<class T > | |
void | operator= (const UList< T > &a) |
template<class T > | |
void | operator= (const List< T > &list) |
template<class T > | |
void | operator= (const SLList< T > &list) |
template<class T > | |
void | operator= (std::initializer_list< T > list) |
template<class T > | |
void | operator= (List< T > &&list) |
template<class T > | |
void | operator= (SortableList< T > &&list) |
template<class T > | |
void | operator= (SLList< T > &&list) |
Istream & | readList (Istream &is) |
template<class T > | |
constexpr | List () noexcept |
void | resize (const label newLen) |
template<class T > | |
void | append (const T &val) |
template<class T > | |
void | append (T &&val) |
template<class T > | |
void | append (const UList< T > &list) |
template<class T > | |
void | operator= (const T &val) |
template<class T > | |
void | operator= (const Foam::zero) |
template<class T > | |
List (Istream &is) | |
Istream & | readList (Istream &is) |
Static Public Member Functions | |
static int | compare (const face &a, const face &b) |
static bool | sameVertices (const face &a, const face &b) |
static unsigned | symmhash_code (const UList< label > &f, unsigned seed=0) |
![]() | |
static const List< T > & | null () |
Static Public Attributes | |
static const char *const | typeName = "face" |
enum proxType |
|
constexprdefaultnoexcept |
|
inlineexplicit |
|
inline |
|
inline |
Foam::label collapse | ( | ) |
void flip | ( | ) |
Definition at line 493 of file face.C.
References n.
Referenced by createShellMesh::setRefinement().
|
inline |
Definition at line 80 of file faceI.H.
References p.
Referenced by sensitivitySurface::addGeometricSens(), deltaBoundary::cellCenters_d(), NURBS3DVolume::computeControlPointSensitivities(), Bezier::dndbBasedSensitivities(), NURBS3DVolume::dndbBasedSensitivities(), Bezier::dxdbFace(), sensitivitySurfacePoints::finalisePointSensitivities(), NURBS3DVolume::patchDxDbFace(), and advancingFrontAMI::writeIntersectionOBJ().
Foam::point centre | ( | const UList< point > & | points | ) | const |
Definition at line 507 of file face.C.
References Foam::mag(), nPoints, points, and Foam::Zero.
Definition at line 46 of file faceTemplates.C.
References fld, Foam::mag(), nPoints, and Foam::Zero.
Foam::vector areaNormal | ( | const UList< point > & | p | ) | const |
Definition at line 571 of file face.C.
References n, nPoints, p, and Foam::Zero.
Referenced by face::FOAM_DEPRECATED_FOR().
|
inline |
Definition at line 97 of file faceI.H.
References Foam::mag(), n, p, s, and Foam::Zero.
|
inline |
Definition at line 196 of file face.H.
References face::areaNormal(), and p.
Definition at line 105 of file faceI.H.
References Foam::mag(), and p.
Referenced by polyPatch::areaFraction(), face::areaInContact(), hexCellLooper::cut(), and cyclicACMIFvPatch::movePoints().
Foam::face reverseFace | ( | ) | const |
Definition at line 629 of file face.C.
References UList::size().
Referenced by polyMeshAdder::add(), and perfectInterface::setRefinement().
|
inline |
Definition at line 156 of file faceI.H.
References Foam::ListOps::find().
|
inline |
Definition at line 168 of file faceI.H.
Referenced by combineFaces::getOutsideFace(), boundaryCutter::setRefinement(), and tetDecomposer::setRefinement().
|
inline |
Definition at line 174 of file faceI.H.
Referenced by tetDecomposer::setRefinement().
Definition at line 652 of file face.C.
References nPoints, and Foam::constant::mathematical::pi().
Foam::tensor inertia | ( | const UList< point > & | p, |
const point & | refPt = vector::zero , |
||
scalar | density = 1.0 |
||
) | const |
Definition at line 731 of file face.C.
References forAll, p, and Foam::Zero.
Foam::pointHit ray | ( | const point & | p, |
const vector & | n, | ||
const UList< point > & | meshPoints, | ||
const intersection::algorithm | alg = intersection::FULL_RAY , |
||
const intersection::direction | dir = intersection::VECTOR |
||
) | const |
Definition at line 29 of file faceIntersection.C.
References Foam::average(), PointHit< PointType >::distance(), PointHit< PointType >::eligibleMiss(), f(), PointHit< PointType >::hit(), PointHit< PointType >::hitPoint(), Foam::mag(), PointHit< PointType >::missPoint(), n, nPoints, p, points, PointHit< PointType >::setDistance(), PointHit< PointType >::setHit(), PointHit< PointType >::setMiss(), and PointHit< PointType >::setPoint().
Foam::pointHit intersection | ( | const point & | p, |
const vector & | q, | ||
const point & | ctr, | ||
const UList< point > & | meshPoints, | ||
const intersection::algorithm | alg, | ||
const scalar | tol = 0.0 |
||
) | const |
Definition at line 135 of file faceIntersection.C.
References PointHit< PointType >::distance(), f(), forAll, PointHit< PointType >::hit(), PointHit< PointType >::hitPoint(), Foam::mag(), p, PointHit< PointType >::setDistance(), PointHit< PointType >::setHit(), and PointHit< PointType >::setPoint().
Foam::pointHit nearestPoint | ( | const point & | p, |
const UList< point > & | meshPoints | ||
) | const |
Definition at line 193 of file faceIntersection.C.
References p.
Foam::pointHit nearestPointClassify | ( | const point & | p, |
const UList< point > & | meshPoints, | ||
label & | nearType, | ||
label & | nearLabel | ||
) | const |
Definition at line 207 of file faceIntersection.C.
References PointHit< PointType >::distance(), f(), PointHit< PointType >::hit(), PointHit< PointType >::hitPoint(), Foam::mag(), PointHit< PointType >::missPoint(), triangle::nearestPointClassify(), nPoints, p, PointHit< PointType >::setDistance(), PointHit< PointType >::setHit(), PointHit< PointType >::setMiss(), and PointHit< PointType >::setPoint().
Definition at line 308 of file faceIntersection.C.
Foam::scalar contactSphereDiameter | ( | const point & | p, |
const vector & | n, | ||
const UList< point > & | meshPoints | ||
) | const |
Definition at line 30 of file faceContactSphere.C.
References Foam::mag(), n, and p.
Foam::scalar areaInContact | ( | const UList< point > & | meshPoints, |
const scalarField & | v | ||
) | const |
Definition at line 28 of file faceAreaInContact.C.
References forAll, face::mag(), Foam::mag(), and List::setSize().
|
inline |
Definition at line 118 of file faceI.H.
Referenced by Foam::checkFireEdges(), and face::faceEdge().
|
inline |
|
inline |
|
inline |
Foam::edgeList edges | ( | ) | const |
Definition at line 766 of file face.C.
Referenced by Foam::polyMeshZipUpCells().
Foam::edgeList rcEdges | ( | ) | const |
int edgeDirection | ( | const Foam::edge & | e | ) | const |
Definition at line 808 of file face.C.
References Foam::constant::electromagnetic::e, and Foam::ListOps::find().
Definition at line 869 of file face.C.
References edge::mag().
label triangles | ( | const UList< point > & | points, |
DynamicList< face, SizeMin > & | triFaces | ||
) | const |
Definition at line 274 of file face.C.
References CirculatorBase::ANTICLOCKWISE, Foam::constant::physicoChemical::b, ConstCirculator< ContainerType >::circulate(), CirculatorBase::CLOCKWISE, ConstCirculator< ContainerType >::setFulcrumToIterator(), and ConstCirculator< ContainerType >::setIteratorToFulcrum().
Referenced by Foam::operator!=(), and Foam::operator==().
Definition at line 375 of file face.C.
References Foam::constant::physicoChemical::b, and forAll.
Referenced by blockFace::compare().
|
static |
Definition at line 415 of file face.C.
References f().
Referenced by face::symmHasher::operator()(), and face::symmhash_code().
|
inline |
Definition at line 443 of file face.H.
References Foam::Hasher().
Referenced by face::hasher::operator()().
|
inline |
Definition at line 451 of file face.H.
References face::symmhash_code().
|
inline |
Definition at line 478 of file face.H.
References face::edge().
Foam::label triangles | ( | const UList< point > & | points, |
DynamicList< face, SizeMin > & | triFaces | ||
) | const |
Definition at line 28 of file faceTemplates.C.
References points, DynamicList::setSize(), and split().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.