-
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…
-
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…
-
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…
-
Unable to install Numpy in Mechanical Scripting 2025R2
I am trying to install Numpy for post-processing, but unable to install. sys.path.append() helps to install in Shell, but not in Scripting editor. Is there a workaround?
-
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…
-
How to extract contact data using Ansys DPF Core
I am using ansys-dpf-core to postprocess results. And I see that there are operators to extract contact based results like gap, penetration, etc. But I am not able to get any info on the contact identifiers or entities. For example, I have a contact in Ansys mechanical, and I choose to get a contact penetration/gap result…
-
How to create custom buttons on WB Project page?
I want to create a set a of analysis systems on the WB project page and connect them automatically. Ideally I require a custom button on the WB project page, which when clicked calls a function where I can define my workflow.
-
Is there a way to change the visual properties (ex. color) of a connection beams in Mechanical using
Is there a way to change the visual properties (ex. color) of a connection beams in Mechanical using Scripting API?
-
Defining imported pressure loads for different time steps
I have several .csv files that define pressure boundary conditions. I would like to use those files in Mechanical to define imported pressure, each file defining the pressure for one specific load step.
-
How to postprocess a Mechanical model with PyDPF-Core?
I have a model built in Mechanical that has contacts and fixed supports. I would like to perform the post-processing outside of Mechanical using PyDPF-Core and get contact pressure and reaction forces, for specific contact regions or fixed support regions. How can I do that ?
-
Contact postprocessing in PyDPF
I have a model built in Mechanical and I would like to use PyDPF to postprocess the contact reaction forces and get the same results as in Mechanical.
-
Saving residuals to external file
Dear support, I am trying to export my residuals into an external file (for simulation logging and data convergence check). I have set the residual configuration like this: Get residuals state residuals_state = session.settings.solution.monitor.residual.get_state() Modify state residuals_state['equations'] = {'continuity':…
-
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',…
-
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…
-
Explicit Dynamics not behaving as expected
Hello all, I'm hoping to find some help here. Hopefully I am just misunderstanding the physics of what i going on. So i set up an Explicit Dynamics sim of a rotating shaft coupling impacting a guard. The axis of the coupling is angled 45deg off the YZ plane and 30deg off the XY plane. Coupling is set to rotate around the…
-
DPF solution for force and moment reactions
Hi all. I am looking for a DPF solution in mechanical that is equal to a force and moment reaction probe. I would like to be able to scope to either geometry, a contact, or to a construction surface that cuts through geometry. I am more interested in auto export of the data than contours in Mechanical, so creation of a…
-
How do I calculate force reactions (total XYZ force) for lots of contacts for all time points
How do I calculate force reactions (total XYZ force) for lots of contacts for all time points
-
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…
-
Delay on the Mechanical GUI when using a few thousands of objects
Dear All, dear Developer, I'm facing with a huge delay in my model when using about 6000 joint objects (fixed connections between pipes and tubesheets in a heat exchanger). If I click on a unique joint or I want to add an extra one, I have to wait about 2s for the generation/creation of the object on a high-end…
-
ACT extensions on 2024 R2 - importing between encrypted Python files (compiled = "true")
Hi, I'm currently working on an ACT extension in Ansys 2024 R2 with multiple Python files declared in the XML. Everything works fine when compiled="false", but as soon as I switch to compiled="true" on the scripts, I can no longer import functions from one file to another. Here is a minimal example: XML : <extension…
-
How to create a binout tracker on a Tracer?
How to create a binout tracker on a Tracer inside WB LS-Dyna?
-
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.
-
LS-PrePost: Documented Python command 'partofelem_id' don't work (runtime error)
Here all Python DataCenter commands for LS-PrePost are listed (page 183 and following): https://ftp.lstc.com/anonymous/outgoing/lsprepost/SCLexamples/lsppscripting.pdf But if you try my example inside LS-PrePost, you get the element connectivity but not the partID: "RuntimeError: There is no partofelem_id" import…
-
How to access Import Load History Data for a Force Component Tabular Data
Hi, I'm using Ansys 2022R2 and I'm looking for a code to access Import Load History Data for a Force Component Tabular Data.
-
Possible bug in report-defitinions expression
Dear support, I am trying to create an expression report definition which uses inputs from 2 other reports. When using the GUI this works just fine: However, I cannot get its reference using session.settings.solution.report_definitions.expression.get(name='delta') and it looks like it doesn't exist. I get a None type…
-
Is there a way to run multiple Mechanical instances using embedded PyMechanical version?
I would like to run a parametric study, varying the pressure load and run multiple analysis using Embedded PyMechanical. Using ansys-mechanical-core==0.12.7 and tried using the app.new() method, which doesn't seem to work as expected.
-
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 command snippets to parts automatically?
Say we have a Static system, with CZM debonding and we need to account for temp. dep. on that and on the contact stiffness. We thus need to convert solid187 elements to solid227 with thermal option, say via a command snippet placed under each 3D solid flexible body only. How can that be automated using scripting?