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 ofpyvista.UnstructuredGrid
.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 ofpyvista.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
Array of area numbers.
Geometry of the areas.
Obtain the keypoints geometry.
Array of keypoint numbers.
Geometry of the lines.
Array of line numbers.
Number of areas currently selected.
Number of keypoints currently selected.
Number of lines currently selected.
Number of volumes currently selected.
Array of volume numbers.
Obtain the volumes geometry