triSurface Class Reference
Inheritance diagram for triSurface:
Collaboration diagram for triSurface:

Classes

class  triangleAccessor
 

Public Member Functions

 TypeInfo ("triSurface")
 
 triSurface ()
 
 triSurface (const realx3Vector &points, const int32x3Vector &vertices)
 
 triSurface (const realx3x3Vector &triangles)
 
virtual ~triSurface ()=default
 
size_t numPoints () const
 
size_t numTriangles () const
 
size_t size () const
 
size_t capacity () const
 
int32 maxIndex () const
 
auto getTriangleAccessor () const
 
const realx3Vector_Dpoints () const
 
realx3Vector_Dpoints ()
 
const realVector_Darea () const
 
realVector_Darea ()
 
const realx3pointsData_D () const
 
realx3pointsData_D ()
 
const int32x3Vector_Dvertices () const
 
int32x3Vector_Dvertices ()
 
int32x3verticesData_D ()
 
const int32x3verticesData_D () const
 
void clear ()
 
int32 calcMaxIndex () const
 
bool readTriSurface (iIstream &is)
 
bool writeTriSurface (iOstream &os) const
 
bool read (iIstream &is)
 
bool write (iOstream &os) const
 
- Public Member Functions inherited from eventSubscriber
 eventSubscriber ()
 
virtual ~eventSubscriber ()
 
virtual bool subscribe (eventObserver *observer) const
 
virtual bool unsubscribe (eventObserver *observer) const
 
bool notify (const eventMessage &msg)
 
bool notify (const eventMessage &msg, const List< eventObserver * > &exclutionList)
 

Protected Member Functions

int32 addTriangle (const realx3x3 &tri, realx3Vector &points, int32x3Vector &vertices)
 
bool check ()
 

Protected Attributes

realx3Field_D points_
 points of triangles More...
 
int32x3Field_D vertices_
 vectices indices of triangles More...
 
realField_D area_
 area of each triangle More...
 
int32 maxIndex_ = -1
 
- Protected Attributes inherited from eventSubscriber
List< eventObserver * > observerList_
 

Detailed Description

Definition at line 38 of file triSurface.hpp.

Constructor & Destructor Documentation

◆ triSurface() [1/3]

Definition at line 114 of file triSurface.cpp.

◆ triSurface() [2/3]

triSurface ( const realx3Vector points,
const int32x3Vector vertices 
)

Definition at line 123 of file triSurface.cpp.

References pFlow::triSurfaceKernels::calculateArea(), fatalErrorInFunction, and fatalExit.

Here is the call graph for this function:

◆ triSurface() [3/3]

triSurface ( const realx3x3Vector triangles)

Definition at line 148 of file triSurface.cpp.

References pFlow::triSurfaceKernels::calculateArea(), Vector< T, Allocator >::clear(), fatalErrorInFunction, and fatalExit.

Here is the call graph for this function:

◆ ~triSurface()

virtual ~triSurface ( )
virtualdefault

Member Function Documentation

◆ addTriangle()

pFlow::int32 addTriangle ( const realx3x3 tri,
realx3Vector points,
int32x3Vector vertices 
)
protected

Definition at line 29 of file triSurface.cpp.

References pFlow::find(), Vector< T, Allocator >::size(), triple< T >::x(), triple< T >::y(), and triple< T >::z().

Here is the call graph for this function:

◆ check()

bool check ( )
protected

Definition at line 103 of file triSurface.cpp.

◆ TypeInfo()

TypeInfo ( "triSurface"  )

◆ numPoints()

size_t numPoints ( ) const
inline

Definition at line 149 of file triSurface.hpp.

References triSurface::points_, and VectorSingle< T, MemorySpace >::size().

Referenced by pFlow::dataToVTK(), triSurface::getTriangleAccessor(), geometry::numPoints(), and pFlow::TSFtoVTK::triDataToVTK().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ numTriangles()

size_t numTriangles ( ) const
inline

Definition at line 154 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::size(), and triSurface::vertices_.

Referenced by pFlow::dataToVTK(), triSurface::getTriangleAccessor(), triSurface::size(), and pFlow::TSFtoVTK::triDataToVTK().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

size_t size ( ) const
inline

Definition at line 159 of file triSurface.hpp.

References triSurface::numTriangles().

Referenced by geometry::afterIteration(), pFlow::TSFtoVTK::convertRealx3TypetriSurfaceField(), and geometry::size().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ capacity()

size_t capacity ( ) const
inline

Definition at line 164 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::capacity(), and triSurface::vertices_.

Here is the call graph for this function:

◆ maxIndex()

int32 maxIndex ( ) const
inline

Definition at line 169 of file triSurface.hpp.

References triSurface::maxIndex_.

◆ getTriangleAccessor()

auto getTriangleAccessor ( ) const
inline

◆ points() [1/2]

const realx3Vector_D& points ( ) const
inline

Definition at line 184 of file triSurface.hpp.

References triSurface::points_.

Referenced by multiTriSurface::addTriSurface(), pFlow::dataToVTK(), geometry::points(), and pFlow::TSFtoVTK::triDataToVTK().

Here is the caller graph for this function:

◆ points() [2/2]

realx3Vector_D& points ( )
inline

Definition at line 189 of file triSurface.hpp.

References triSurface::points_.

◆ area() [1/2]

const realVector_D& area ( ) const
inline

Definition at line 194 of file triSurface.hpp.

References triSurface::area_.

Referenced by multiTriSurface::addTriSurface(), and geometry::afterIteration().

Here is the caller graph for this function:

◆ area() [2/2]

realVector_D& area ( )
inline

Definition at line 199 of file triSurface.hpp.

References triSurface::area_.

◆ pointsData_D() [1/2]

const realx3* pointsData_D ( ) const
inline

Definition at line 204 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::deviceVectorAll(), and triSurface::points_.

Here is the call graph for this function:

◆ pointsData_D() [2/2]

realx3* pointsData_D ( )
inline

Definition at line 209 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::deviceVectorAll(), and triSurface::points_.

Here is the call graph for this function:

◆ vertices() [1/2]

const int32x3Vector_D& vertices ( ) const
inline

Definition at line 214 of file triSurface.hpp.

References triSurface::vertices_.

Referenced by multiTriSurface::addTriSurface(), pFlow::dataToVTK(), pFlow::TSFtoVTK::triDataToVTK(), and geometry::vertices().

Here is the caller graph for this function:

◆ vertices() [2/2]

int32x3Vector_D& vertices ( )
inline

Definition at line 219 of file triSurface.hpp.

References triSurface::vertices_.

◆ verticesData_D() [1/2]

int32x3* verticesData_D ( )
inline

Definition at line 224 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::deviceVectorAll(), and triSurface::vertices_.

Here is the call graph for this function:

◆ verticesData_D() [2/2]

const int32x3* verticesData_D ( ) const
inline

Definition at line 229 of file triSurface.hpp.

References VectorSingle< T, MemorySpace >::deviceVectorAll(), and triSurface::vertices_.

Here is the call graph for this function:

◆ clear()

void clear ( )
inline

Definition at line 234 of file triSurface.hpp.

References triSurface::area_, VectorSingle< T, MemorySpace >::clear(), triSurface::points_, and triSurface::vertices_.

Referenced by multiTriSurface::clear().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ calcMaxIndex()

pFlow::int32 calcMaxIndex ( ) const

Definition at line 81 of file triSurface.cpp.

References VectorSingle< T, MemorySpace >::deviceVectorAll(), LAMBDA_HD, pFlow::max(), VectorSingle< T, MemorySpace >::size(), and triSurface::vertices_.

Here is the call graph for this function:

◆ readTriSurface()

bool readTriSurface ( iIstream is)

Definition at line 191 of file triSurface.cpp.

References pFlow::triSurfaceKernels::calculateArea(), IOstream::fatalCheck(), FUNCTION_NAME, ioErrorInFile, IOstream::lineNumber(), and IOstream::name().

Referenced by pFlow::operator>>(), and triSurface::read().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeTriSurface()

bool writeTriSurface ( iOstream os) const

Definition at line 219 of file triSurface.cpp.

References IOstream::check(), and FUNCTION_NAME.

Referenced by pFlow::operator<<(), and triSurface::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool read ( iIstream is)
inline

Definition at line 249 of file triSurface.hpp.

References triSurface::readTriSurface().

Here is the call graph for this function:

◆ write()

bool write ( iOstream os) const
inline

Definition at line 254 of file triSurface.hpp.

References triSurface::writeTriSurface().

Here is the call graph for this function:

Member Data Documentation

◆ points_

◆ vertices_

◆ area_

realField_D area_
protected

area of each triangle

Definition at line 117 of file triSurface.hpp.

Referenced by triSurface::area(), and triSurface::clear().

◆ maxIndex_

int32 maxIndex_ = -1
protected

Definition at line 119 of file triSurface.hpp.

Referenced by triSurface::maxIndex().


The documentation for this class was generated from the following files: