-
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…
-
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…
-
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…
-
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…
-
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…
-
Node ID Maximum value
Hey, I have a quick question about using Ansys Mechanical. When you're using the Max probe to find the node with the maximum value, how can you check what ID number that node has?
-
Directional Contact Sliding Distance Plots using Python of a DPF
Hi, is it possible to generate directional contact sliding distance contour plots using Python code or a DPF? The contact tool in Workbench Mechanical is only able to plot the magnitude of accumulated sliding. It would be useful to get a plot of the direction the sliding occurs as sometimes it is unclear in the contact…
-
Computing Strain Rate using DPF inside Mechanical
Hi, I want to investigate the strain rates of a body of a transient analysis. I try to use dpf to compute the strain rates, however, it doesnt work so far. Basic ideas: 1. Using math.time_derivation operator Problems: * usually we use ansys version 23r1. the operator doesnt yet exist in that version * still, I tried out…
-
PyAnsys Installation/Configuration
Thank you greatly everyone, I am trying to use PyAnsys for my first time. For simplicity I just want to start by being able to run the simple PyAnsys Geometry example in the following website : https://geometry.docs.pyansys.com/version/stable/user_guide/index.html On terminal I had used the following two commands: Pip…
-
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 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…
-
How to split a face by a plane in PyAnsys Geometry
Hello, I'm trying to use PyAnsys Geometry to build a model. Now I want to spilt the face like shown below. I checked the document, it seems only mentioned the body spilt. Is there any function can spilt the face? from ansys.geometry.core import launch_modelerfrom ansys.geometry.core.math import Point2D, Point3Dfrom…
-
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?
-
How can I get the Ansys release I'm working with through Mechanical Scripting?
Using Mechanical Scripting, how can I retrieve the Ansys release I'm working with in my session?
-
How to extract forces / moments for coupled nodes (CP command) in a Harmonic analysis using MAPDL?
In a Harmonic analysis, I have some nodes that are coupled together using the CP command. How can I extract the forces / moments at those nodes?
-
How to calculate the distance between two Remote Points with APDL commands?
In my Mechanical Model I have two Remote Points named 'Remote Point 1' and 'Remote Point 2'. I've assigned a 'Pilot Node APDL Name' from the Details of each object, so that they can be referenced as 'rp_1' and 'rp_2' respectively:
-
How to loop over each loadstep and substep to extract a result item in APDL?
Assume that I want to extract the displacement of a node (e.g., ID=1) across the X-direction in each loadstep and substep. How can I do this by looping over the entire dataset?
-
How do I create LS-Dyna analysis system using PyMechanical?
How do I create LS-Dyna analysis system using PyMechanical?
-
How can we create named selections containing parts of the same type using scripting?
We have an assembly of parts inside Mechanical that have bodies of different different types, and we would like to create named selections where every named selection (ns) contains only bodies of the same type (e.g., solids), using scripting.
-
How can we create named selections containing the line bodies that have the same cross section using
We have an assembly of parts inside Mechanical that have line bodies with different cross section assignments, and we would like to create named selections where every named selection (ns) contains only line bodies with the same cross section, using scripting. For instance, if the cross sections used are Rectangular,…
-
Export Static Structural Solutions Tabular Data
Hi everyone, I'm looking for a good way to access or export the content of the Tabular Data from my Static Structural Solutions with Ansys Mechanical Scripting. So far I was only able to get the Data content of the set Display Time or the whole Tabular Data via the ExtAPI.UserInterface. Is there no better way to get the…
-
Did I get something wrong about damping in "Harmonic Response"
Hi, I investigate the harmonic response on a structure with a Model I didn't create myself. I computed the Modal Analysis with this settings: Damped Yes Solver Type Reduced Damped Mode Reuse Programm Controlled Store Complex Solution No In "Harmonic Response" I chose "mode superstition" and set the damping ratio to 7,5…
-
Unable to extract EPCR using DPF-Core
I tried to extract EPCR (equivalent creep strain) from a given .rst file using ansys-dpf-core. It responds with the message: "The operator EPCR doesn't exist in the registry. Check its spelling in the documentation or verify its availability in your loaded plugins. The current available operator names can be accessed using…
-
Functionality of "ansys.dpf.core.operators.result.spectrum_data" between 2025R1 and 2025R2
This script (see below) pulls participation factors in 2025R1, but returns an error "Exception: No output available on pin number 0. Available output pins are: []: line 26" when used in 2025R2. The exact same test model was used in both versions. Test Script: import mech_dpf import Ans.DataProcessing as dpf…
-
Set Scoping Method and Named Selection of Imported Load Temperature
Hi everyone, I'm looking for a way to set the Scoping Method and Named Selection of an Imported Load Temperature Object automatically with a pymechanical script. Can anyone help me with that? Many thanks in advance.
-
Issue with extraction of equivalent stresses scoped to named selections in Mechanical
I am trying to extract the equivalent stresses using DPF operators, scoped to a nodal named selection. This is a static structural simulation, for the record. For some reason, the extracted fields don't contain any data whatsoever. It lists out the mat and time ids for each node, in the field. But no stress values in the…
-
Handling Model Transfer of Custom ACT Tree objects (updating upstream / combining models)
Hello! I am currently building an ACT extension and would like to transfer my custom tree object to an upstream model from a "Mechanical Model". Essentially my Workbench session looks like this: (with a mechanical model transferring to a Modal analysis). In the Mechanical model I have created a custom ACT extension that…
-
How to create small buttons for ACT Extension
Hi for a long time I'm wondering if it is possible to create small toolbar entries for my ACT extension. I'm able to create only big buttons (Supports), but not the small entries (Fixet, Frictionless, ....) Does some way exist, how to do it? Thanks