General Mechanical

General Mechanical

Topics relate to Mechanical Enterprise, Motion, Additive Print and more

Mechanical Scripting Data Table


    • Jake Garrison



      How can I create a datatable in Ansys Mechanical scripting for storing and manipulating simulation data? 



    • Aniket
      Ansys Employee
    • mjmiddle
      Ansys Employee

      Are you referring to NumPy or SciPy? Or are you referring to Data Processing Framework (DPF) as Aniket had linked? Or is it something more basic, such as just setting up a python dictionary from data you extract?

      Ansys has used IronPython interpreter, which is incompatible with CPython modules, such as NumPy and SciPy. We have advised customers to use MathNet in place of SciPy and NumPy, and it is even included in the Ansys installation, but your python code will need to load the dll:

      ANSYS Inc\v{version}\Addins\ACT\bin\Win64\Mathnet.Numerics.dll

      In Ansys 2023 R1 if you turn on beta options, and also "Tools > Options > Mechanical" and turn on "Show CPython Capability," you can set to CPython interpreter in Mechanical so you can load SciPy and NumPy and other CPython modules:

Viewing 2 reply threads
  • You must be logged in to reply to this topic.