imat_vtkplot/setdisplacementcomponent (+FEA)


Purpose

Set the deformed displacement display component.

Syntax

hplot.setdisplacementcomponent([comp][,'scale_factor',SCALE_FACTOR])

Description

SETDISPLACEMENTCOMPONENT sets the deformed result component being displayed and the deformed scale factor.

COMP is either a string containing the component or a numeric scalar containing the index into the component list found here:

HPLOT.displacement.shapecomponents

If COMP is not provided, the current component index will be used.

SCALE_FACTOR is either the string 'reset' or a numeric scalar used to scale the deformed shape.

Examples

>> h.setdisplacementcomponent('Y')
>> h.setdisplacementcomponent(1)
>> h.setdisplacementcomponent('magnitude')
>> h.setdisplacementcomponent('scale_factor','reset')
>> h.setdisplacementcomponent('scale_factor',2.0)
>> h.setdisplacementcomponent('Y','scale_factor',2.0)