first#

DbElems.first(ielm=0)[source]#

Get the number of the first element.

This starts at inod, defaults to the first element in the model.

Parameters:
ielmint, optional

The first element number to consider as the “first element”.

Returns:
int

The first element number after ielm.

Examples

Return the first selected element.

>>> elems = mapdl.db.elems
>>> elems.first()
1

Return the first element after element 10.

>>> elems.first(ielm=10)
11