roty#
- Query.roty(n)#
Returns y-component of rotational displacement at a node.
Y-component of rotational displacement at node
n
.Examples
This example has been adapted from the example script Generating and Extracting Rotational Displacement. We create a square of shell material, apply a displacement perpendicular to the plane of the material, and then solve.
Then we can use
queries.roty
to get the y-component rotational displacement at the middle node on the deformed edge.>>> from ansys.mapdl.core import launch_mapdl >>> mapdl = launch_mapdl() >>> mapdl.prep7() >>> mapdl.et(1, 'SHELL181') >>> mapdl.mp("EX", 1, 2e5) >>> mapdl.rectng(0, 1, 0, 1) >>> mapdl.sectype(1, "SHELL") >>> mapdl.secdata(0.1) >>> mapdl.esize(0.2) >>> mapdl.amesh("all") >>> mapdl.run('/SOLU') >>> mapdl.antype('STATIC') >>> mapdl.nsel("s", "loc", "x", 0) >>> mapdl.d("all", "all") >>> mapdl.nsel("s", "loc", "x", 1) >>> mapdl.d("all", "uz", -0.1) >>> mapdl.allsel("all") >>> mapdl.solve() >>> node = mapdl.queries.node(1, 0.5, 0) >>> mapdl.queries.roty(node) 0.1489593933