TAGGED: ironpython, script
-
-
June 7, 2023 at 12:55 pm
Jake Garrison
SubscriberHello,
How can I create a datatable in Ansys Mechanical scripting for storing and manipulating simulation data?
Thanks.
-
June 8, 2023 at 10:44 am
Aniket
Ansys Employeecan you explain your query in more detail? You may want to take a look at PyDPF-Core — PyDPF-Core (pyansys.com) and PyDPF-Post — PyDPF-Post (pyansys.com)
-Aniket
-
June 8, 2023 at 9:07 pm
mjmiddle
Ansys EmployeeAre 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
http://numerics.mathdotnet.com
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:
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Solver Pivot Warning in Beam Element Model
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- User manual
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- whether have the difference between using contact and target bodies
- Defining rigid body and contact
- Colors and Mesh Display
-
7592
-
4438
-
2951
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.