We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
结构

结构

Ansys Workbench中如何单独更新某些特定Design Point的结果?

    • Haifeng Niu
      Ansys Employee

      如题,谢谢~

    • Haifeng Niu
      Ansys Employee

      可以通过界面操作也可以写个脚本。

      1. 界面操作:按ctrl选中几个DP后,右键update selected design points. 右键也有set update order by Row, 设置顺序。

      2. 脚本方式:

      下面例子的脚本演示定义了3DP,求解时只更新了2个。

      将以下内容放在文本文件中,文件扩展名改成py,可以根据需要增减,也可以写成循环。

      designPoint1 = Parameters.GetDesignPoint(Name="0")

      designPoint1.Retained = True

       

      designPoint2 = Parameters.GetDesignPoint(Name="1")

      designPoint2.Retained = True

       

      designPoint3 = Parameters.GetDesignPoint(Name="2")

      designPoint3.Retained = True

       

      backgroundSession1 = UpdateAllDesignPoints(DesignPoints=[designPoint1, designPoint2])

      Save(Overwrite=True)

      Reset()

      按下图设定保存选项,再从workbench界面File>>scripting>>run script file

Viewing 1 reply thread
  • 主题 ‘Ansys Workbench中如何单独更新某些特定Design Point的结果?’ 已关闭新回复.