![]() |
GeMA
The GeMA main application
|
Cell boundary objects are used to store a set of cell borders, either a set of cell edges for 2D meshes or a set of cell faces for 3D meshes. Their main use is to represent mesh borders, serving as application points for boundary conditions. Cell boundary objects can be obtained in the orchestration from a mesh object by calling the mesh:
cellBoundaryGroups()
method or from a boundary condition object by calling the bc:
boundary()
method.
Example:
Index:
boundary:
numCells()
boundary:
cell()
boundary:
cellBorder()
boundary:
setBoundaryData()
boundary:id() | |
---|---|
Description: | Returns the boundary id. |
Parameters: | None. |
Returns: | Returns a string with the boundary name. |
Example:
boundary:type() | |
---|---|
Description: | Returns the type of border stored by this object (a cell edge or a cell face). |
Parameters: | None. |
Returns: | Returns a string identifying the border type ('edges' or 'faces'). |
Example:
boundary:mesh() | |
---|---|
Description: | Returns the mesh object owning the cells included in this boundary. |
Parameters: | None. |
Returns: | Returns the associated mesh object. |
Example:
boundary:numCells() | |
---|---|
Description: | Returns the number of {cell, border} pairs in this boundary. |
Parameters: | None. |
Returns: | Returns the number of cells in this boundary. |
Example:
boundary:cell(index) | |
---|---|
Description: | Returns a cell object given its index inside the boundary. |
Parameters: | index - The boundary index (a value between 1 and boundary: numCells() ). |
Returns: | Returns the cell object. |
Example:
boundary:cellBorder(index) | |
---|---|
Description: | Returns the boundary border given its index inside the boundary. The returned value can be an edge number or a face number depending on the boundary type returned by boundary: type() . See the Element types page for the edge/face organization for each cell type. |
Parameters: | index - The boundary index (a value between 1 and boundary: numCells() ). |
Returns: | Returns the border (edge/face) number. |
Example:
boundary:setBoundaryData(cells, borders) | ||
---|---|---|
Description: | Replaces the complete set of cells and edges/faces of a boundary object by the given ones. | |
Parameters: | cells | A table with the new set of cells. Can store either cell numbers or cell objects. |
borders | A table with the new set of border edge/face numbers. Should have the same size as the cells table. See the Element types page for the edge/face organization for each cell type. | |
Returns: | Nothing. |
Example: