areas#
- Geometry.areas(quality=4, merge=False)[source]#
List of areas from MAPDL represented as
pyvista.PolyData
.- Parameters:
- Returns:
list
of
pyvista.UnstructuredGrid
List of
pyvista.UnstructuredGrid
meshes representing the active surface areas selected byASEL
. Ifmerge=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