ny#
- Query.ny(n)#
Return the y coordinate of a node.
Fetches Y-coordinate of node
n
in the active coordinate system.Examples
Here we construct a simple box and mesh it with elements. Then we use the the
ny
method from thequeries
attribute to find the y-coordinate of the 10th node.>>> from ansys.mapdl.core import launch_mapdl >>> mapdl = launch_mapdl() >>> mapdl.prep7() >>> mapdl.et(1, 'SOLID5') >>> mapdl.block(0, 10, 0, 20, 0, 30) >>> mapdl.esize(2) >>> mapdl.vmesh('ALL') >>> mapdl.queries.ny(10) 4.0