areas#

LegacyGeometry.areas(quality=1, merge=False)#

List of areas from MAPDL represented as a pyvista.PolyData object.

Parameters:
qualityint, optional

Quality of the mesh to display. Values are 1 (worst) to 10 (best).

mergebool, optional

Whether to merge areas into a single mesh. The default is False, in which case a list of areas is returned. When True, the output is a single mesh.

Returns:
list of pyvista.UnstructuredGrid

List of pyvista.UnstructuredGrid meshes representing the active surface areas selected by ASEL. If merge=True, areas are returned as a single merged pyvista.UnstructuredGrid.

Return type:

Union[PolyData, List[UnstructuredGrid]]

Examples

Return a list of areas as individual grids.

>>> areas = mapdl.areas(quality=3)
>>> areab
[UnstructuredGrid (0x7f14add95040)
  N Cells:      12
  N Points:     20
  X Bounds:     -2.000e+00, 2.000e+00
  Y Bounds:     0.000e+00, 1.974e+00
  Z Bounds:     0.000e+00, 0.000e+00
  N Arrays:     4,
UnstructuredGrid (0x7f14add95ca0)
  N Cells:      12
  N Points:     20
  X Bounds:     -2.000e+00, 2.000e+00
  Y Bounds:     0.000e+00, 1.974e+00
  Z Bounds:     5.500e-01, 5.500e-01
  N Arrays:     4,
...

Return a single merged mesh.

>>> area_mesh = mapdl.areas(quality=3)
>>> area_mesh
UnstructuredGrid (0x7f14add95ca0)
  N Cells:      24
  N Points:     30
  X Bounds:     -2.000e+00, 2.000e+00
  Y Bounds:     0.000e+00, 1.974e+00
  Z Bounds:     5.500e-01, 5.500e-01
  N Arrays:     4