-
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…
-
How to calculate signed von mises in PyDPF?
I want to calculate signed von mises in Python Result. I see there is a long winded way.
-
How to activate CPython in Ansys Mechanical V241?
I activated Beta feature in Scritping to perform Python Result using Cpython. But it did not compile the code and not thrown any error. The Python Result snippet just showed "red bolt" in the model tree. I installed PyAnsys modules using Ansys Python Manager. Now, I see the CPython is installed in the ProgramFiles/Ansys…
-
Boussinesq
Hello friends, I need help with a project I received. I am designing air flow in a thermosyphon loop where a section of the right wall is a heat source and a section of the left wall is a sink. The rest of the walls are adiabatic. The goal of the project is to validate the Boussinesq model against an ideal gas model for…
-
How to reset the Mechanical GUI layout using scripting?
If my scripted workflow requires having Mechanical GUI open, how can I reset the layout of the GUI window before graphics export?
-
Problem with PyAEDT installation
Hello everyone. I have a question regarding the PyAEDT installation. It seems to have installed successfully, but the PyAEDT console icon is missing. Could anyone suggest what the problem might be and how to resolve it?
-
SpaceClaim script to list component/body suppress-for-physics status
Hello, I'm trying to make a script to list all the components / bodies and their suppress-for-physics status (true or false) in a SpaceClaim model. But the suppressed body still shows suppressed = false status. Would somebody be able to point out what's wrong about my script? # Python Script, API Version = V242document =…
-
Fluent 2025 R2: solve/execute-commands/add-edit fails with “api-set-var: the object is not active” (
In Fluent 2020 R2, the following command worked correctly: solve/execute-commands/add-edit command-101 40 "iteration" "report/system/sys-stats" However, in Fluent 2025 R2, the command no longer works. Error message: solve/execute-commands/add-edit command-101 Adding command-101 40 "iteration" "report/system/sys-stats"…
-
Exporting Fatigue Tool Results (Rainflow and Damage Matrix;Sensitivity & Hysteresis) in PyMechanical
I am looking for options to export Rainflow, Damage Matrix, fatigue sensitivity and hysteresis results using PyMechanical. Currently, there is no option to export to a text file using an API in PyMechanical.
-
How to make SN fatigue material properties dependent on flow stress values in Ansys nCode DesignLife
Assuming that my fatigue material properties are calculated by some relationships with UTS (ultimate tensile strength), I would like to update UTS based on nodal stress values given by a text file and then calculate fatigue damage based on updated fatigue material properties.
-
How do I do a Fourier Transform of a Signal using DPF?
How do I do a Fourier Transform of a Signal using DPF?
-
Nonlinear adaptive meshing for Archard contact wear simulation is not working
I am following this example here: (https://ansyshelp.ansys.com/public/account/secured?returnurl=///Views/Secured/corp/v242/en/wb_wbtec/WBtecwear.html). I am trying to simulate fretting wear for a polymer pin and a metal flat using a 2D Archard wear model. I have scaled the wear coefficient to simulate wear for 10 million…
-
How can we calculate the distance between 2 nodes or vertices using scripting?
We have a named selection called here 'test_ns', that has either 2 nodes or 2 vertices. How can we then calculate the distance between 2 nodes or vertices using scripting?
-
Fluent Meshing changes working directory after geometry import
Hello everyone, I am facing an interesting issue in Fluent Meshing 2024R1 standalone for CFD purpose. I use it on Windows and Linux (HPC) os, thus I launch Fluent in batch mode and I feed it with a journal that contains TUI commands. In the batch script, I define the directory that contains the batch script AND the journal…
-
Get surface area where the electric field is above a certain value
We would like to get the surface area where the electric field is above a certain value max Electric_field_x * 0.9. How can that be done using say dpf in mechanical?
-
Issue with mapping.on_coordinates operator
I am using dpf.core to facilitate the post process of simulation for the nuclear domain. I have developed some python code to create objects like node and segment where I want to map the nodal stress. Getting the stress tensor on segments allows me to linearize the stress in a python environment which can be then used in a…
-
Granta MI Python STK Unit Tests
What is the best way to create unit tests for scripts using the MI Python STK, without accessing external databases? Unit tests should be able to run without a live connection to a database required, and shouldn't rely on a database's state to pass. But if a script makes extensive use of the MI STK then it is challenging…
-
How to plot on a Named Selection of Nodes in PyDPF core
I want to create a plot like this: Where the mesh not associated with the results is translucent or trans parent. All I can get with DPFPlotter is this: It should not be so difficult to plot results scoped to a named selection
-
Is there a bug in dpf.operators.mapping.on_coordinates() in Ansys 2025 R1?
The documentation indicates that an input pin exists to modify the default tolerance value (5e-5). However, attempting to use this input in the script results in an error. Moreover, when inspecting the operator inputs using dir, the tolerance parameter does not appear to be available.
-
How to create mutual inductance component on Twin Builder using PyAEDT?
Dear PyAEDT community, I'm trying to create a Mutual Inductance component on Twin Builder, this is my latest (and it doesn't work): mm = comp.create_component( component_library="Simplorer Elements\Basic Elements\Circuit\Passive Elements", component_name="M", location=[0, 0] ) Could someone please help me with this? Thanks…
-
What Changed Need to be Made from Steady to Transient?
I have made a python script for running steady k-omega SST flow on an aircraft geometry, varying vertical and horizontal velocity components to simulate different angles of attack, trying to obtain lift and drag coefficients. The steady script works perfectly for what I need it to do. I now need the same script but for…
-
how to export several nastral files automatically
Hello, My client has several static structural boxes (around 15), and each analysis involves time-varying applied loads. Exporting a Nastran file manually for each load case and each box is quite tedious. Is there a way to automate this process in version 2023r2? Thank you for your help. Sincerely, Amal
-
PyAEDT failing on load_project()
I have installed PyAEDT using the Ansys Python Manager, version 3.13. I am trying to run the following script to load and modify an existing project. I have confirmed the project exists / path correctness and I have permissions to edit the file. from ansys.aedt.core import…
-
How to create an Ansys UI Toolkit GUI box to get input from the user?
How to create an Ansys UI Toolkit GUI box to get input from the user?
-
ACT Result Reader: Limitations on CreateMeshData method
Hi development team, I am facing issues with ACT Result Reader when I want to get mesh data from RST file, specifically I need to further work with contact elements. Following code returns to mesh_rst variable very frequently None or obviously truncated mesh data: analysis = ExtAPI.DataModel.Project.Model.Analyses[0]reader…
-
Ansys DPF - Mapping to Coordinates
I am writing a script using DPF to map results to coordinates along a path. For a given path, I am discritizing it by 49 points. I then use these coordinates with FieldsFactory.Create3DVectorField to create the field. Then, using this field, I pass it to dpf.operators.mapping.on_coordinates() (see picture below,…
-
Setting up Harmonic base Excitation from Modal Results via Scripting?
I'm running codes in VS code tool. need to setup, Harmonic environment to modal. Below code is using to setup harmonic environment analysis after modal run. Help me to set up Harmonic environment to modal Script_harmonic = """ harmonic_analysis = Model.AddHarmonicResponseAnalysis() analysis_settings =…
-
how to get the contact force using pyDPF
as title.
-
How to apply a series of forces from a spreadsheet on faces arranged in a circular pattern?
I have a series of force magnitude values in a spreadsheet, and I am interested in applying those forces on the base faces of a circular geometry pattern like in the picture below:
-
Inflatable balloon catheter FEA
Hey everyone! I'm trying to model the initial expansion of an inflatable balloon catheter on a dry molding setup. My company thinks there might be an unequal pressure distribution along the polymer inner wall so I'd like to run a transient fluid structure interaction (FSI) sinulation. I know the inlet pressure of a gas,…
-
remote point using a named selection
I have a named selection "block 1a" and would like to use it as the scoping method in a new remote point which will then be duplicated to make a spring. I currently cannot added the name selection as the location. Is it easier to convert to a ID or use a differnt method to get the location ? model =…