areas#

property Geometry.areas: MultiBlock[source]#

Geometry of the areas.

Obtain the selected areas as a pyvista.MultiBlock object.

Returns:
pv.MultiBlock

Examples

>>> mapdl.geometry.areas
MultiBlock (0x147ca7640)
  N Blocks    28
  X Bounds    -0.016, 0.016
  Y Bounds    -0.008, 0.018
  Z Bounds    -0.003, 0.015

You can plot the entities:

>>> mapdl.geometry.areas.plot()

You can access the individual areas using indexing:

>>> area0 = mapdl.geometry.areas[0]
>>> area0
UnstructuredGrid (0x147ca4340)
  N Cells:    10
  N Points:   18
  X Bounds:   0.000e+00, 1.588e-02
  Y Bounds:   -7.620e-03, 1.778e-02
  Z Bounds:   -3.180e-03, -3.180e-03
  N Arrays:   3

You can use the entity name:

>>> area1 = mapdl.geometry.areas["area 1"]
>>> area1
UnstructuredGrid (0x147ca4340)
  N Cells:    10
  N Points:   18
  X Bounds:   0.000e+00, 1.588e-02
  Y Bounds:   -7.620e-03, 1.778e-02
  Z Bounds:   -3.180e-03, -3.180e-03
  N Arrays:   3

You can iterate the different elements:

>>> points = mapdl.geometry.areas
>>> for each_line in points:
        print(each_line)
UnstructuredGrid (0x147ca4340)
  N Cells:    10
  N Points:   18
  X Bounds:   0.000e+00, 1.588e-02
  Y Bounds:   -7.620e-03, 1.778e-02
  Z Bounds:   -3.180e-03, -3.180e-03
  N Arrays:   3
...