Geometry#

class ansys.mapdl.core.mapdl_geometry.Geometry(mapdl)#

Pythonic representation of MAPDL CAD geometry

Contains advanced methods to extend geometry building and selection within MAPDL.

Methods

Geometry.area_select(items[, sel_type, ...])

Select areas using a sequence of items.

Geometry.generate_surface([density, amin, ...])

Generate an all-triangular surface of the active surfaces.

Geometry.get_areas([quality, return_as_list])

Get active areas from MAPDL represented as pyvista.PolyData or a list of pyvista.UnstructuredGrid.

Geometry.get_elements_per_area()

Get the number of elements meshed for each area.

Geometry.get_keypoints([return_as_list, ...])

Obtain the keypoints geometry.

Geometry.get_lines([return_as_list])

Obtain line geometry

Geometry.get_volumes([return_as_list, quality])

Get active volumes from MAPDL represented as a pyvista.PolyData object or a list of pyvista.UnstructuredGrid objects.

Geometry.keypoint_select([items, sel_type, ...])

Select keypoints using a sequence of items.

Geometry.line_select(items[, sel_type, ...])

Select lines using a sequence of items.

Geometry.volume_select(items[, sel_type, ...])

Select volumes using a sequence of items.

Attributes

Geometry.anum

Array of area numbers.

Geometry.areas

Geometry of the areas.

Geometry.keypoints

Obtain the keypoints geometry.

Geometry.knum

Array of keypoint numbers.

Geometry.lines

Geometry of the lines.

Geometry.lnum

Array of line numbers.

Geometry.n_area

Number of areas currently selected.

Geometry.n_keypoint

Number of keypoints currently selected.

Geometry.n_line

Number of lines currently selected.

Geometry.n_volu

Number of volumes currently selected.

Geometry.vnum

Array of volume numbers.

Geometry.volumes

Obtain the volumes geometry