areas

Geometry.areas(quality=4, merge=False)

List of areas from MAPDL represented as pyvista.PolyData.

Parameters
qualityint, optional

quality of the mesh to display. Varies between 1 (worst) to 10 (best).

mergebool, optional

Option to merge areas into a single mesh. Default False to return a list of areas. When True, output will be 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 UnstructuredGrid.

Examples

Return a list of areas as indiviudal 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