![]() |
GeMA
The GeMA main application
|
Cell group set objects are an abstraction that allows for creating a new cell group composed by the cells defined in a set of mesh cell groups. They can be used, for example, by global interpolation functions to restrict the set of elements over which the interapolation will be applied. Currenty, cell group set objects are always created in the orchestration through a call to the CellGroupSet()
function.
Example:
Index:
groupSet:
cellGroups()
groupSet:
mesh()
CellGroupSet(mesh, groups, disjoint) | ||
---|---|---|
Description: | Creates a new cell group set to represent the set of cells formed by the intersection of the given group sets, all of them belonging to the given mesh. | |
Parameters: | mesh | The mesh object containing the set of cells that will be included in the new cell group set. |
groups | An optional table storing the list of cell group names defining which cells will be included in the new group. If the group list is empty, or was not given at all (nil ), all mesh cells are going to be included in the new set. The names of the available cell groups for the given mesh can be queried through the mesh: cellGroupIds() method. | |
disjoint | An optional flag that when set to true informs the new object that the groups given by the previous table are disjoint (the intersection between all the given groups is empty). When this is true, some optimizations can be done to avoid creating an additional cell index. Keep in mind that no check is done to validate the given information. Default = false. | |
Returns: | Returns a new cell group set object. |
Example:
groupSet:cellGroups() | |
---|---|
Description: | Returns the names of the mesh cell groups used to create this cell group set object. |
Parameters: | None. |
Returns: | Returns a table with the cell group names (might be empty for goups storing all mesh cells). |
Example:
groupSet:mesh() | |
---|---|
Description: | Returns the support mesh object, owning the cells included on this cell group set. |
Parameters: | None. |
Returns: | Returns the associated mesh object. |
Example:
groupSet:numCells() | |
---|---|
Description: | Returns the number of distinct cells in the cell group set. |
Parameters: | None. |
Returns: | Returns the number of cells in the group. |
Example:
groupSet:cell(index) | |
---|---|
Description: | Returns the i'th cell belonging to the group set given an 'i' index parameter. |
Parameters: | index - The cell index inside the group set (a value between 1 and groupSet: numCells() ). |
Returns: | Returns the cell object. |
Example:
groupSet:numNodes() | |
---|---|
Description: | Returns the number of distinct nodes referenced by the set of cells in the group. |
Parameters: | None. |
Returns: | Returns the number of nodes in the group. |
Example:
groupSet:node(index) | |
---|---|
Description: | Returns the i'th node belonging to the group set given an 'i' index parameter. Nodes are returned in no particular order. |
Parameters: | index - The node index inside the group set (a value between 1 and groupSet: numNodes() ). |
Returns: | Returns the mesh node index. |
Example: