uz#

Query.uz(n)#

Returns z-component of structural displacement at a node.

Z-component of structural displacement at node n.

Parameters:
nint

Node number

Returns:
float

Displacement of node

Return type:

float

Examples

In this example we create a simple block of 6 cubic elements, fix one end in place, and then bend the other perpendicular to it. We can then examine the displacement of one of the nodes in the z-direction at the deformed end (node number 7).

>>> 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(10)
>>> mapdl.vmesh('ALL')
>>> mapdl.mp('EX', 1, 210E9)
>>> mapdl.nsel('S', 'LOC', 'Z', 0)
>>> mapdl.d('ALL', 'UX')
>>> mapdl.d('ALL', 'UY')
>>> mapdl.d('ALL', 'UZ')
>>> mapdl.nsel('S', 'LOC', 'Z', 30)
>>> mapdl.f('ALL', 'FY', 1000)
>>> mapdl.run('/SOLU')
>>> mapdl.antype('STATIC')
>>> mapdl.solve()
>>> mapdl.finish()
>>> mapdl.queries.uz(7)
3.74530389e-08