-
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 can I convert a STL in a type o of file that Simpleware I can work with?
Hello, I have a mandible model generated using Simpleware, and my task is to simulate cuts performed in osteotomy surgery; to do this, I took an STL file generated from a DICOM dataset, imported it into SpaceClaim, added another STL representing a generic blade to simulate the cut, and removed material using the Facets…
-
Script for image generator of contour in Parametric Studies
Regarding this previous forum https://developer.ansys.com/blog/script-tip-friday-python-code-object-mechanical#:~:text=Step 1: Insert this “Python,Files Directory of the Project. This is for Ansys Mechanical I want to understand the documentation to be used with other contour results such as directional deformations and…
-
Display contour + mesh
Dear support, I am trying to display a mesh element on a contour to visualize the relative position of my mesh with respect the flow features. I can successfully display my contour using session_contour['mach_contour'].display(), where session_contour = session.settings.results.graphics.contour. And I can also display my…
-
How to make a UI side-panel of user inputs in Mechanical
This is an example of how to make an embedded side-panel of user controls for inputs, geometry selections, tree object selections, file selection etc.. You can then take these inputs to run routines on this user-defined data via buttons.
-
Load and use surface to create imprint surface
Dear support, I am sent here after posting my problem in github and the support there couldn't give me a solution. The issue that was closed was the following: https://github.com/ansys/pyfluent/issues/4884#issuecomment-3851877585 I am trying to create an imprint surface by using a similar method with TUI commands :…
-
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.
-
Tabular Data indexing when importing load data from an external file
Hello, I was trying to use a script that was posted here in order to load Force data from an external excel file. https://discuss.ansys.com/discussion/comment/6186?tab=all#Comment_6186 The error I'm getting is: "Index was out of range. Must be non-negative and less than the size of the collection." It seems that in order…
-
FATIGUE CRACK PROPAGATION
Hello, I am experiencing an issue with the following APDL code. The crack does not propagate as expected. Could someone help me identify what might be causing this behavior? I have tried several approaches, including modifying the time stepping, DAMX, and convergence tolerances, but unfortunately without success. Thank you…
-
How to include deformation scaling into a plot created by Python Result? By default it is unscaled
By Adjusting Deformation scaling in Mechanical, one could scale the Deformed shape for any standard result. But, this doesn't seem to work for Python Result (scaling is greyed out).
-
What is the best way to issue Adjust To Visible via a script?
I have a script that iterates through many bodies and creates images in Mechanical based on some user-input. Because the script is designed to do this across many bodies, I thought the easiest way to improve efficiency would be to use only one result object, say a Total Deformation, scoped to all bodies, and can then just…
-
Python: Failed to connect to Motor-CAD instance
Dear forum, we have been using Motor-CAD 2024.1.3 with Python scripts in the last months. On the same PC (Windows) Motor-CAD 2024.2.3.1 has now been installed. This seems to lead to some unexpected behavior: when opening the same models and scripts in the same older 2024.1.3 version, the Python scripts suddenly fail at the…
-
How to export volume-wise solution data in Icepak using Python API for AEDT?
To my understanding, Icepak uses finite volume method to solve thermal simulation. Hence, after performing steady-state thermal simulation, I want to export volume-wise (i.e., meshd elements) solution data (e.g., temperature) using either GUI or Python API. For GUI or Python API, I only found to export solution data…
-
How to get access to create_surface_body_from_trimmed_curves()?
I would like to reconstruct geometry from a mesh consistig of low order triangles and quads by using a surface for each element. Node locations and element nodes are available. PyGeometry only supports creating a surface based on a sketch or an existing face of a body. After searching the internet I found a function that…
-
pass parameter values between python code objects
Hi, I have a parameter with a python code object for preprocessing that I would like to use it for postprocessing. Right now, I have it written to user_file folder during pre-processing for later usage. I would like to do parameter sweep in parallel, and I would expect user_file option would mess up with multiple runs…
-
Welding Toolbox - ACT extension- App store. Contents of .wbex file missing. how to get?
https://developer.ansys.com/app/ansys-inc/welding-toolbox/2 this app documentation is good and i would like to use it, however the contents of the wbex file is missing. is there some location i can get this from?
-
LS-PrepPost Python Scripting: Possible to pre-filter result data: get_data('disp_x'...)
If I use the command to get the x-displacements: import DataCenter as dcresults = dc.get_data('disp_x', type=dc.Type.NODE, ist=1) I get the x-displacements for all nodes in the model. It is possible to pre-filter the request using a node list? Filtering afterwards is also possible, but this takes time, as all nodes have to…
-
How to wirte a journal to export automatic pseudo time in CFD silmulations.
Currently, the verbosity is set to 1 to see the pseudo-time step (dt) being printed with each iteration in the console. We tried with the below journal in order to export automatic pseudo time step value into text file inside FLTG folder , but unable to print the value of it. It prints #F in the text file (define…
-
How to Export Automatic Pseudo-Time Step (pseudo_dt) Value to Text File via Fluent Scheme Journal?
I am running transient CFD simulations using the automatic pseudo-time stepping method in ANSYS Fluent. Currently, I have the solver verbosity set to 1, so I can see the pseudo-time step value (pseudo_dt) printed in the console during iterations. Now, I want to automatically export the current pseudo_dt value to a text…
-
how to communicate WB parameters set with FLUENT?
Hi, I defined the flow-time value as an output parameter to be called in an automation process as: But, when I call the "flow-time-op" parameter either in TUI or UDF, it says this param is not defined. How is it possible to call output value in FLUENT? Best
-
How to read ansys mesh file into PyFluent
can PyFluent read the mesh file generated by ansys mesher or it has to be converted into any format. I kept in the same file-folder location bur throwing error. i am able to read it in fluent (2025r1)
-
How to import a design table for a parametric study by using pyFluent?
Hello, I would like to import a design table by using PyFluent. From the dictionary, I got the tui command “solver.tui.parametric_study.design_points.table.import_design_table” And used it as follow solver.tui.parametric_study.design_points.table.import_design_table(filepath = 'New Study.csv') I got the following outputs:…
-
Turning off shadows reflections and grids line in fluent using py Fluent
I developing a script using py fluent to automate post processing in fluent, the script captures images and extracts some data. while capturing images i want to turn of shadows reflections and grids line, which i am not able to do, I tried the following steps I am running the script in no-GUI mode graphics =…
-
How can I export '.TabularData' to file? Harmonic Analysis - Frequency Response result
Sometimes the ability to export data is not in the API but a .TabularData allows you to access the data. But in some cases, .TabularData does not easily export. A harmonic response is one such example. A Harmonic Frequency Response has a .TabularData API but you need to parse it for exporting to a file. What I did (and…
-
How to set the value for Capped Isosurface ?
Hello, I would like to create a function for capped isosurface. For displaying this, I use this command : ExtAPI.Graphics.ViewOptions.ResultPreference.GeometryView = MechanicalEnums.Graphics.GeometryView.CappedIsosurface But, I don't find the command for : * selecting the option (Iso, bottom, top) * defining the value…
-
Contact Region Figure with 3 views
Hi, In Ansys Mechanical, is it possible to add a figure for contact with additional views (for target and contact bodies) to be included in the report preview? If not, I want to do it by scripting. Is there a solution to hide all bodies except target/contact bodies for a specific contact and save screenshot as a png file?
-
How to find a constraint equation by number?
Premise: I have a model that I am trying to extract modal neutural files (.mnf files) from, to be used in ADAMS. The model is very large and complex and have been through the joints/constraints eliminating the nonlinear ones. I have a modal module that solves without any errors and i get modal results. Problem: When the…
-
How to update the engineeringdata in ANSYS LS-DYNA
In ANSYS Mechanical, the engineeringdata update is performed using the script below. I would like to do the same in ANSYS LS-DYNA. import wbjnmodel = ExtAPI.DataModel.Project.Modelanalysis = model.Analyses[0]settings = analysis.AnalysisSettingslist_dir = settings.SolverFilesDirectory.rsplit("\\",3)print list_dir[1]pyCmd =…
-
Mechanical material menu blank
Hi, I've installed Ansys Student 2025 R2 on my personal machine. Everything works fine so far except for the materials menu in Mechanical. It remains blank. Do you have any ideas about the cause if the issue and how to resolve it? Cheers Henning
-
How can I use my own stress criterion to control the deletion and addition of elements during struct
How can I use my own stress criterion to control the deletion and addition of elements during structural topology optimization
-
CZM, Fracture, Contact Debonding
Hello everyone, I’m a student working on a thesis project where I performed shear tests on bonded single-lap joints (SLJ). The tests produced a force–displacement curve, and my task is to reproduce this curve in ANSYS Mechanical using CZM fracture with Contact Debonding. I expected this to be relatively straightforward,…