SetObjectDeformation

Sets the deformation of objects when calling Ansys Electronics Desktop from Ansys Workbench. with

UI Access N/A
Parameters
Name Type Description
<ObjectArray> Array

Array containing the following parameters:

  • "EnabledStressObjectsName:= "The names of objects that are enabled for deformation.
Return Value None.

 

Python Syntax SetObjectDeformation(<ObjectArray>)
Python Example

oDesign.SetObjectDeformation(["EnabledStressObjectsName:=" , ["Cylinder1", "Sphere1"]])

 

For Maxwell 3D Magnetostatic and Transient designs with initial stress

Python Syntax SetObjectDeformation(<ObjectArray>)
Python Example

oDesign.SetObjectDeformation( ["EnabledStressObjectsName:=" , ["Cylinder1", "Sphere1"], "Enabled3DStressXXObjects:=", ["12.35psi","30.64psi"], "Enabled3DStressYYObjects:=", ["5.72psi","16.93psi"],

"Enabled3DStressZZObjects:=", ["14.75psi","12.22psi"],

"Enabled3DStressXYObjects:=", ["64.3psi","28.13psi"],

"Enabled3DStressYZObjects:=", ["19.43psi","58.67psi"],

"Enabled3DStressXZObjects:=", ["27.63psi","40.31psi"]

])

 

For Maxwell 2D Magnetostatic and Transient XY designs with initial stress

Python Syntax SetObjectDeformation(<ObjectArray>)
Python Example

oDesign.SetObjectDeformation( ["EnabledStressObjectsName:=" , ["Cylinder1", "Sphere1"], "Enabled2DXYStressXXObjects:=", ["12.35psi","30.64psi"], "Enabled2DXYStressYYObjects:=", ["5.72psi","16.93psi"],

"Enabled2DXYStressXYObjects:=", ["64.3psi","28.13psi"],

])

 

For Maxwell 2D Magnetostatic and Transient RZ designs with initial stress

Python Syntax SetObjectDeformation(<ObjectArray>)
Python Example

oDesign.SetObjectDeformation( ["EnabledStressObjectsName:=" , ["Cylinder1", "Sphere1"], "Enabled2DRZStressRRObjects:=", ["12.35psi","30.64psi"], "Enabled2DRZStressZZObjects:=", ["5.72psi","16.93psi"],

"Enabled2DRZStressRZObjects:=", ["64.3psi","28.13psi"],

])