ky

Query.ky(k)

Return the y coordinate of a keypont.

Y-coordinate of keypoint k in the active coordinate system.

Parameters

k (int) – Keypoint number to be considered.

Return type

float

Returns

float – Coordinate of the keypoint.

Examples

Here we add a single keypoint, then use ky to extract the y-coordinate of it.

>>> from ansys.mapdl.core import launch_mapdl
>>> from ansys.mapdl.core.inline_functions import Query
>>> mapdl = launch_mapdl()
>>> mapdl.prep7()
>>> mapdl.k(1, 0, 1, 2)
>>> q = Query(mapdl)
>>> q.ky(1)
1.0