-
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…
-
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',…
-
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?
-
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 ?
-
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…
-
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…
-
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…
-
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 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?
-
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…
-
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…
-
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?
-
Python Result Table Property Provider
Has anyone figured out how to implement a table property for a python result similar to the in ACT extensions? I would like to take advantage of some of the plotting capabilities in python results, but need user input in some form of table.
-
Mesh WorkSheet Python Scripting
I am attempting to write a scripts which takes each named selection listed in the Mesh Worksheet and write it to an excel file. I am having difficulty traversing the named selection worksheet, various methods have failed. Any Advice? I am currently in 25R2.
-
How to stop the unnecessary expansion of the object in my simulation.
Heyy y'all! I have an object with helical structure wound over a cylindrical Object. One side of the object is fixed. At the edge of the other Side, I give an external Displacement of 30 degrees. (as shown in the picture) At the end of the simulation, the side with the external Displacement, in addition to the rotation…
-
Accessing the python interpreter output
Dear all, I'm trying to use the Python Result Object (CPython interpreter) to define properties (scoping, user-defined inputs) for a custom evaluation algorithm. I'm having difficulties with defining these properties: if the reload_props function inside is not flawless, it simply won't run and debugging is almost…
-
How can we automatically replace all solid bodies with free standing point masses using scripting?
Say we have some 3D solid parts and we want to automatically replace them all with free standing point masses using scripting?
-
How to retrieve created bodies from an opened document.
I would like to know how to retrieve the bodies created by the methods DocumentOpen.Execute and DocumentInsert.Execute. The methods return a result object that has a GetCreated method, but I don't understand the syntax of GetCreated. It seems to require a TDoc object but TDoc doesn't exist. I would like to know how many…
-
How can I save my geometry using design.export_to_disco() ?
I'm testing out pyGeometry. I was able to create my intended geometry. However, when I try to save it I keep running into the same error: GeometryExitedError: Geometry service connection terminated: Could not find file 'C:\Users\fneves_esss\AppData\Local\Temp\4ac83aa2-2d09-4b99-8d8b-b92fe2e9c916.dsco'. Shouldn't the file…