-
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…
-
I signed up but I can't post because of a "Permission Problem", how can I fix this?
So I came here to post a question, but I logged in and now I can't post? I get this error Who do I need to talk to to get this fixed?
-
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 do I use the Mesh Edit / Morph Control Displacement File in Mechanical?
How do I use the Mesh Edit / Morph Control and especially the Displacement File in Mechanical? This file format was not acccepted by Mechanical: NodeId, X, Y, Z, UX, UY, UZ What is the expected file format, would you have an example?
-
cannot transfer updated mesh to FLUENT
Hi For automation using Fluent, I used journal recording in Workbench. However, the mesh cannot be updated and passed into FLUENT: The main part of the code reads: mesh1.Edit()mesh1.SendCommand(Language = "Python", Command = """Model.UpdateGeometryFromSource()mesh_14 =…
-
How to complete the Fluent Startup Options
Hi there. I'll start with I have no idea how to program/script in Python! We have several setup scripts that we've used for many versions of Ansys. When we upgraded to 2023R2, the setup scripts no longer functioned. Through some debugging on my own, I saw that the startup options changed from 2021R2 to 2023R2. In…
-
Could ANSYS Python Manager Updates Cause Python Script Execution Issues?
We need to assess whether newer versions or updates of ANSYS Python Manager could have any impact on reading or executing existing Python scripts. We are currently experiencing issues with a Python script that is not working properly on my computer. We would like to know if an update of ANSYS Python Manager, a change in…
-
Some questions about Linux AEDT HPC setting & pyAEDT
I am an application engineer responsible for the HF/SI domain. I have some questions regarding pyAEDT script-based control of AEDT HPC settings on Linux systems that I would like to consult with you all about. Background My customer is using Q3D through 3D VNC on a Linux HPC cluster managed by PBS. The cluster consists of…
-
USER300 user element compilation setup and example
I am trying to develop a USER300 user element in Ansys 2025R2. While setting up the programming environment required to compile and develop, I've run into an issue where the Fortran compiler hangs indefinitely without providing any feedback or error logs. My initial plan was to successfully compile an existing example…
-
PyFluent cannot inject multiple UDM-s (SV_UDM_I) into Fluent
Dear Ansys Developers, I am building a topology optimization toolchain using Python as the outer optimization driver and Fluent 2025 R2 for the primal/adjoint solves. I am using PyFluent to directly inject initialization fields (e.g., γ, α, k) into Fluent’s User Defined Memory (UDM) blocks via the solution_variable_data…
-
PyAnsys/Geometry Example for STEP Import and Automated Geometry Cleanup
Hi Team, I am looking for an example demonstrating a geometry preprocessing workflow using PyAnsys Geometry (or any recommended API). Specifically, I would like to know if there is an example that covers the following workflow: Import a STEP (.stp/.step) file. Perform automated geometry cleanup/repair operations. Create a…
-
How to get value in CAD Parameters to python variable?
Hello, can you help me to get value of highlighted parameter to python variable? Thank you
-
How to create a second isolated ground node in Nexxim Transient (Circuit) simulation?
Hello, I'm simulating a 2-port transformer (imported as .s2p NPort into Ansys Circuit) where I need two galvanically isolated ground references: * Port 1 reference → instrumentation ground (node "0") * Port 2 reference → a separate "floating" ground for a cable model (W-element), NOT connected to node "0" I used the NPort…
-
Is it possible to slice dpf.Model().metadata.meshed_region.node ?
Hello, I need to get the Id's and coordinates of the nodes of a meshing made with Workbench. I write something like myModel = dpf.Model(r"anywhere\file.rst") myMeshing = myModel.metadata.meshed_region length = len(myMehsing.nodes) nodesId = [myMeshing.nodes[i].id for i in range(length)] nodesCoordinates =…
-
Set Up Ansys Fluent
I do simulation airlift reactor using multiphase mixture and steady state any suggetion for looking fluids flow and gas holdup?
-
How to create randomly different primitive geometries using pyAnsys in SpaceClaim?
How to create randomly different primitive geometries using pyAnsys in SpaceClaim? We tried with cylinder and spheres with success, but for ellipsoid, box and tetra the code failed to generate bodies, how to generate those bodies without using the sketching and pulling operation but just with a simple function?
-
Midside nodes in pyMAPDL?
I'm currently use pyMAPDL to extract strains for an optimization problem. On the software side, ANSYS calculates midside nodes but on the pyMAPDL side, retrieving strains return N/A for midside nodes. With elements such as SOLID186, this means manually calculating 12 nodes for each element, which can be time consuming in…
-
Map body force density on Mechanical Mesh
Map body force density on Mechanical Mesh
-
Create mesh interfaces in Fluent
Dear support I am trying to model a vertical axis wind turbine (VAWT) and to do so I need to declare the interfaces between the boundaries of my rotating domains. My interfaces are named as following: ['interface_rotating_zone_ext', 'interface_rotating_zone_int', 'interface_airfoil_1_ext',…
-
Access to graphic methods in Fluent meshing mode
Dear support, I am trying to access to the graphics methods to create scenes, display geometries and mesh elements in order to visualize the mesh in Fluent meshing mode. So far I can only use the tui commands like: # Reset to defaultsession.execute_tui('/display/views/default-view')# Fit…
-
Mechanical Python Result Path Plot
I am working on a script to plot linearized values on a path. I've been following along with a posts on the Developer Portal, but I don't get the plot I expect. In fact, the interface plots on element faces internal to the body. I've been debugging, and I think one issue is the path's XYZ locations (via…
-
How to define a beamprofile using Beam.Create and BeamProfile.CreateChannel in Spaceclaim?
When I create a beam using BeamProfile.CreateFromLibrary a CreateBeamProfileResult object is returned with valid data like Success = True and a valid beamprofile. When I use BeamProfile.CreateCircular or other beamsection types no valid data is returned. Even though the profile is created (!) the Success value is False and…
-
Are the Pyfluent APIs for prompt and fuel NOx models incomplete?
When trying to enable Prompt Nox using Python API, fluent shows Note saying API is not executed and it is read only. Only for thermal Nox it works fine, for other types it gives same note. Is it because the API work for Nox model is incomplete? Is there any timeline, when we can expect complete python API? Note: Setting…
-
How can I automatically detect and measure an internal deformed hole in LS-DYNA results?
In an LS-DYNA simulation, a hole is formed in a part. How can i automatically measure the diameter of this hole, and how it changes through the thickness of the part.
-
Select share edges between bodies
Hello, Do you know if there is a way to select edges shared between shell bodies ? (In order to put them in a named selection) In Mechanical, there a display option to see all the share edges. But can we "extract" this data ? Regards, Jean
-
Midside node stress
Hi All, I have resolved the issue in a previous question regarding getting the mesh and stress from the last step of an adapted mesh (adapted mesh using DPF, associated stress tensor only available through ACT passed into main script called by ACT). ACT supplies the elemental nodal stress tensor at the corner nodes. I then…
-
Assign a color to the body based on its thickness
Hello, In Discovery (or Spaceclaim), is there a way to assign a color to the body based on its thickness. Let's say I have an assembly with diffenrent parts, I would like to have all the 3 mm thickness part in one color (eg. red), all the 5 mm thickness part in another color (eg. green), and so one. I was thinking about a…
-
How to paste a load in another analysis using mechanical scripting
Say we want to copy paste a load from one analysis to another analysis using mechanical scripting?
-
How can I import Nastran superelement data from a .dmig file?
You can use the Ansys Mechanical Automation/Python interface to import GRID data from a Nastran file into Ansys Mechanical. Nastran uses a different format and language than Ansys but you can, with some caveats, parse the data from a Nastran superelement and bring that data into Ansys Mechanical. Because the format is not…
-
NLAD, retrieving stress data from remeshed region
Hi, I have a pyAnsys dpf core script that extracts the mesh and nodal stress tensor from a Mechanical rst file and converts it for an upstream task. The model I am using has a non-linear adaptive region (remeshing), I am interested in the adapted mesh and stresses at the end of the analysis (post remeshing). The mesh is…
-
Optislang with Pyfluent on HPC cluster
Hello All, I am trying to run a simple Optislang workflow with a couple of python nodes where I use pyfluent to run the mesher and then the solver. I have problems with launching the fluent session with the slurm scheduler option. On my local machine, without the scheduler, the workflow runs fine. If anybody has experience…
-
Extract Creep Strain from RST file
Hi everybody, I would like to extract the creep strain of a .rst result File via the ansys-dpf-core python module. The code that i execute is: model = dpf.Model(rst_file) # loading the rst file print(model.metadata.result_info) # here the output of the print statement shows that the creep_strain is available. It says…
-
Can not evaluate normal strain ( X, Y direction) according to local coordinate system using pyAnsys
I use dpf core to read a rst file which included defined local coordinate system (ID 1205) and generate normal strain in X, Y direction on a specified location (for example (10,20,0)) but it's can not find that local coordinate system. Can any one help me. My code are below: import sys from ansys.dpf import core as dpf…