nodal_displacement#
- PostProcessing.nodal_displacement(component='NORM')#
Nodal X, Y, or Z structural displacement.
Equilvanent MAPDL command: :rtype:
ndarray
PRNSOL, U, X
- Parameters:
- component
str
,optional
Structural displacement component to retrieve. Must be
'X'
,'Y'
,'Z'
,'ALL'
, or'NORM'
. Defaults to'NORM'
.
- component
- Returns:
numpy.ndarray
Array containing the nodal structural displacement.
Notes
This command always returns all nodal displacements regardless of if the nodes are selected or not.
Examples
Displacement in the
'X'
direction for the current result.>>> mapdl.post_processing.nodal_displacement('X') array([1.07512979e-04, 8.59137773e-05, 5.70690047e-05, ..., 5.70333124e-05, 8.58600402e-05, 1.07445726e-04])
Displacement in all dimensions.
>>> mapdl.post_processing.nodal_displacement('ALL') array([[ 1.07512979e-04, 6.05382076e-05, -1.64333622e-11], [ 8.59137773e-05, 7.88053970e-05, -1.93668243e-11], [ 5.70690047e-05, 1.23100157e-04, -1.04703715e-11], ..., [ 5.70333124e-05, 1.23023176e-04, -9.77598660e-12], [ 8.58600402e-05, 7.87561008e-05, -9.12531408e-12], [ 1.07445726e-04, 6.05003408e-05, -1.23634647e-11]])
Nodes corresponding to the nodal displacements.
>>> mapdl.mesh.nnum_all array([ 1, 2, 3, ..., 7215, 7216, 7217], dtype=int32)