Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Changing Body Dimension in API › Reply To: Changing Body Dimension in API
August 8, 2023 at 6:39 am
Ansys Employee
Â
Â
Â
HI
The easiest is just to go to the system and change under the Geometry/Properties, the Analysis Type to 2D.
As for your question related to mechanical scripting:
You need another line to set dimensions to 2D:
Â
    Body.Dimension=ShellBodyDimension.Two_D
    Body.Behavior=Model2DBehavior.PlaneStrain
All the best
Erik
Â
Â
Â