GemaCoreLib
The GeMA Core library
Loading...
Searching...
No Matches
BcCellBoundary Class Reference

Aux class used to store a cell boundary created from a user given list of cells/borders. More...

Inheritance diagram for BcCellBoundary:
Collaboration diagram for BcCellBoundary:

Public Member Functions

 BcCellBoundary (QString id, GmCellBoundaryType type, GmCellMesh *mesh, int numCells, int *cellIdList, int *borderIdList)
 Basic constructor. Receives as parameters vectors with numCells pairs of (cellId, borderId). Takes the ownership of both pointers.
 
 BcCellBoundary (QString id, GmCellBoundaryType type, GmCellMesh *mesh, int numCells)
 A very specific constructor used by dump loading code. It allocates the cell and border buffers with the given size but does not fills its contents.
 
virtual ~BcCellBoundary ()
 Destructor.
 
virtual QString id () const
 Returns the boundary name.
 
virtual GmCellBoundaryType type () const
 Returns the type of boundary stored by this object (edges or faces)
 
virtual GmCellMeshmesh () const
 Returns the mesh that this border is tied to.
 
virtual int numCells () const
 Returns the number of cells stored in this group.
 
virtual GmCellcell (int i) const
 Returns the cell of the i'th entry stored in this group.
 
virtual int cellBorder (int i) const
 Returns the border index of the i'th entry stored in this group.
 
virtual size_t usedMemory () const
 Returns an estimative of the memory used by the boundary in bytes.
 
void setData (int pos, int cellId, int borderId)
 Updates the (cell, border) pair at list position pos.
 
- Public Member Functions inherited from GmCellBoundary
virtual ~GmCellBoundary ()
 Virtual destructor.
 
virtual bool setBoundaryData (int numCells, int *cellList, int *borderList)
 Updates the cell and border lists in the border object.
 
int * buildNodeList (int *size)
 

Private Attributes

QString _id
 The border id.
 
GmCellBoundaryType _type
 The border type.
 
GmCellMesh_mesh
 The mesh that this border belongs to.
 
int * _cellIdList
 The list of cells in this border.
 
int * _borderIdList
 The list of cell edges/faces in this border.
 
int _numCells
 The number of cells / borders in _cellIdList and _borderIdList.
 

Friends

class GmBoundaryConditionStateDumpItem
 

Detailed Description

Aux class used to store a cell boundary created from a user given list of cells/borders.

Member Function Documentation

◆ cell()

virtual GmCell * BcCellBoundary::cell ( int i) const
inlinevirtual

Returns the cell of the i'th entry stored in this group.

Implements GmCellBoundary.

◆ cellBorder()

virtual int BcCellBoundary::cellBorder ( int i) const
inlinevirtual

Returns the border index of the i'th entry stored in this group.

This index can be an edge index or a face index, depending on the type of boundary stored in this group. This index should be considered together with the cell geometry definition stored by the class GmCellGeometry

Implements GmCellBoundary.

◆ id()

virtual QString BcCellBoundary::id ( ) const
inlinevirtual

Returns the boundary name.

Implements GmCellBoundary.

◆ mesh()

virtual GmCellMesh * BcCellBoundary::mesh ( ) const
inlinevirtual

Returns the mesh that this border is tied to.

Implements GmCellBoundary.

◆ numCells()

virtual int BcCellBoundary::numCells ( ) const
inlinevirtual

Returns the number of cells stored in this group.

Implements GmCellBoundary.

◆ type()

virtual GmCellBoundaryType BcCellBoundary::type ( ) const
inlinevirtual

Returns the type of boundary stored by this object (edges or faces)

Implements GmCellBoundary.

◆ usedMemory()

virtual size_t BcCellBoundary::usedMemory ( ) const
inlinevirtual

Returns an estimative of the memory used by the boundary in bytes.

Implements GmCellBoundary.


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