-
What do you think of the forum? We want to hear from you!
Hello Everyone! The Ansys Developer Forum has been in operation for some time now and we want to hear what you (non-Ansys users) think of it. If you have any feedback on how things could be developed further, areas you think could be improved and how useful the site has otherwise been for you and your company please please…
-
Simulation is pretty *cool* but how *cool* is it really?
Back in 2024 I presented a little introduction to simulation at PyCon. Introduction to Simulation And in that presentation I asked a fundamental physics question. If a heavy cat sits on a bridge of ice. Does that bridge break? But in that situation everything was simply two dimensional (to save time). But what if it…
-
Is your scripting up to scratch?
We want to hear from you! What's the most useful Ansys scripting tip you've found? It could be on the forum, in documentation, or anywhere else. It just has to be... * About Ansys * A developer tool tip (to do with coding or PyAnsys) * Something small, like a specific command or tool you noticed We'd love if you could…
-
New search functionality for the Ansys dev portal
Hello to our forum and portal users! We are very excited to be on the verge of rolling out our new unified search for the Ansys Developer Portal and Forums. This search will bring together the documentation and articles from the dev portal and posts and information on the forum into a new single search. Over time we will…
-
Welcome! Please Read Before Posting
Welcome to the Ansys Developer community! If you are using the developer tool packages with Ansys simulation tools then this is your community space. This community has been created to ask questions of your peers, exchange ideas, and converse about developer issues within an Ansys context. Here are some guidelines: Keep…
-
How can I get the "offending faces" in a failed mesh with scripting?
When you have a failed mesh, there is a message "Automatic source selection failed for MultiZone Mesh Method. Select the source and target faces manually. Right click the message and click Show Problematic Geometry to view the face(s) selected automatically." How can I get the faces ids with scripting?
-
How to assign a property provider to a Pyhton Result?
Hello kind people, I'm trying to create a python file that creates a Python Result in the Mechanical Tree, when executed from the "Run Macro..." in the automation tab. But when I run my file, I get a Python Result that has the right script behind it, But it shows the standard property provider. However I do have the option…
-
DPFServerException: ResultInfoProvider:2<-Data sources not defined
Hello, When I run simple python script using the file download ''\GitHub\transient.rst". import matplotlib.pyplot as plt import numpy as np from ansys.dpf import core as dpf path = "transient.rst" model = dpf.Model(path) print(model) after print() line , error reported, Exception has occurred: DPFServerException…
-
How to send commands to Mechanical from Workbench?
I have a script that can be executed in Mechanical Scripting. How can I execute the same Mechanical script from Workbench without having an interactive Mechanical session open?
-
How to loop over only the result objects using Mechanical Scripting?
As part of the script I'm developing, I want to loop over only the result objects under the Solution of my analysis. How can I do that?
-
How can I export the maximum and average Temperature results from several Named Selections automatic
In my Mechanical Model I have several Named Selections for which I want to get some temperature quantities. Specifically, from the thermal analysis I want to extract the maximum and average temperatures for each of the Named Selections. How can I automate this process?
-
How to change the Identifier field of an External Data system using Workbench Commands?
I want to change the text shown in the Identifier field of my imported data source in the External Data system using Workbench Scripting. How can I do this?
-
How to get the Source and Type information of a Geometry Import object with Mechanical Scripting?
I have a Geometry Import object in Mechanical and want to get the Source and Type information as shown in the Details of the object. How can I do this with Mechanical Scripting?
-
How to get the geometry type scoping of a Named Selection?
I have some Named Selections and want to know what type of Geometry scoping each of them has; for example, body, face, edge, or vertex? How can I do this with Mechanical Scripting?
-
How to calculate the distance between two Remote Points with DPF?
Assume I have two Remote Points in my Model called 'Remote Point 1' and 'Remote Point 2'. How can I calculate the distance between the two across all timesets using DPF?