rotx#
- Query.rotx(n)#
Returns x-component of rotational displacement at a node.
X-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.rotx
to get the x-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.rotx(node) -0.0002149851187