-
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…
-
Display order of multi-values in a discrete attribute immutable?
Hi, Is there any programmatic (or other) way of changing the order in which multi-values for a discrete attribute are displayed in the UI? I have tried a number of different ways through MI:Admin and MI:Toolbox to change the order in which the values are displayed, and it always reverts to the original order. This makes me…
-
How to know what's the face indicator on stress result of file.rst
Hello y'll. I'm working on a python project that need to integrate file.rst from ansys just to use results. The wahala is that i'm looking data's but i don't know what give me what. I can get constraint, ids but there is no data to know what data give me nodal face to apply correct colloration
-
How to set up dimension for TsaiWu failure criteria using scripting?
How to set up dimension for TsaiWu failure criteria using scripting?
-
AttributeError: 'Modeler' object has no attribute 'run_script' in PyAnsys Geometry 3.10"
Hi everyone, I am building a geometry automation pipeline and trying to execute a SpaceClaim script using ansys-geometry-core in VS Code (Python 3.10). While SpaceClaim launches successfully, I encounter an AttributeError when trying to run the script. my code from ansys.geometry.core import launch_modeler modeler =…
-
How to get Mechanical results from Workbench ?
Hi, I would like to solve some old Ansys archive, and I will use this code : here For most of these archive, there is some results probes (displacements, reaction forces, ...). Is there a way, from Workbench, to access these results ? Regards, Jean
-
Possible bug in dpf.operators.result.element_nodal_forces() in Mechanical scripting
I have a Mechanical script that is intended to duplicate nodal force summation like FSUM in APDL. In my test model, I have several contacts scoped using named selections for which I would like to compute the surface reaction forces and moment (about the global csys). To develop this using DPF, I have force reaction probes…
-
Lock View to XY plane for 2D analysis
For 2D analysis you often want the view in the XY plane. To do this you can use this script to generally snap back to the planar view: camera = ExtAPI.Graphics.Cameravector3D=Ansys.ACT.Math.Vector3Dcamera.ViewVector=vector3D(0,0,1)camera.UpVector=vector3D(0,1,0)
-
Plasticity Failure/Degradation in Explicit Dynamics when Reference Strain Rate is set to 0.001
I am simulating the impact behavior of high-strength material using Ansys Explicit Dynamics with the Johnson-Cook model. I have observed a strange numerical phenomenon: When Reference Strain Rate = 0.001s^-1: The simulation results show purely linear elastic behavior. Even when the stress exceeds 10,000 MPa, the Equivalent…
-
Is there a workaround wave to transfer species mass flux at the coupling interface?
Hello everyone, I am seeking to model the decomposition of a reacting solid domain as it is heated by surrounding flow. As the domain is heated, it ejects gases out of its boundaries. In the System Coupling approach, the fluid domain is modeled with an Ansys Fluent participant (passing heat flux to System Coupling), and…
-
Unable to connect PyAnsys (PyMechanical) with ANSYS Mechanical 2025 R2 Student – Fluent works, Mecha
Hi everyone, I am trying to learn and build a proper automation workflow for ANSYS Mechanical using PyAnsys (PyMechanical). My goal is to automate the Mechanical workflow using Python. My setup ANSYS Mechanical 2025 R2 (v252) – Student Version Python 3.10 ansys-mechanical-core = 0.11.8 Windows Os VS Code What works I am…
-
PyAnsys example workflow
Is there an example workflow that uses the following packages of PyAnsys: PyAEDT, PyAnsysGeometry, PyWorkbench and PyMechanical?
-
How can I scale the results plot in mechanical using mechdpf?
I would like to generate results using a python result and am trying to scale the visualized results. From the developer I have a link to the documentation, but am struggling to figure out how it works.…
-
Issues with Discovery Licensing in Pymechanical
Hello, I am trying to ensure that when i'm opening pygeometry in my session that it pulls a mechanical enterprise license instead of a disco1 license.
-
How to specify license for ansys.geometry.core launch_modeler
When I do: from ansys.geometry.core import launch_modelermodeler = launch_modeler(hidden=True) The geometry service tries to connects to a disco_level1 license. I want it to connect to a mechanical enterprise license instead. ansys" v9999.9999, vendor: ansyslmd, expiry: 01-dec-2026 I just spoke to our tech support guy and…
-
How to create custom ACT Result Object with Scoping to a Construction Geometry Surface
I want to create an ACT Result Object with the Scoping set to a Construction Geometry Surface. Basically it should mimic the built-in Surface Result functionality, but I want to be able to map user created data (from scripting) to the cross section surface. It could be a Python Result object, or an ACT extension, or even…
-
Multistage cyclic Modal Energy Contribution
Hi Oscar / all, Building on this thread: in Mechanical there is a Modal-only postprocessing result called “Energy Contribution” that is extremely useful to classify modes (disk/drum vs blade modes) by comparing strain energy contribution per body for each mode. The Mechanical help states that Energy Contribution highlights…
-
Can I calculate modal mass and Kinetic Energy for modal analysis using DPF?
In MAPDL, the solver output prints a table with Modal Mass and Kinetic Energy per mode calculated with Unit Normalized modes. Can we get the same type of result from Mass Normalized modes using DPF for situations where this output is not available in MAPDL (cyclic, multistage?
-
Inquiry on CTE Homogenization Theory Used for Trace Mapping in Ansys Mechanical
I would like to inquire about the theoretical basis used in Ansys Mechanical for trace mapping during PCB thermal warpage analysis. Based on my validation and test results, I observed that Ansys Mechanical appears to adopt a rule-of-mixture approach for the equivalent CTE calculation of traces, where only the volume…
-
Issue with Material Definition (White Box)
I am having an issue when trying to define a material in ANSYS structural where I just get a white box. How do I fix this? I don't have the option in my settings to change UI options.
-
SetValue callback of property not calling function
Hi all, I'm working with ANSYS 2025R2, I'm new in developing, sorry if I ask a silly question. I'm extending the VMStresses example from Ansys. Till now, I added three properties. I want to run a function after the values (of the first two properties) have been set or changed. But the TestCallback function gets not…
-
How can I generate python results for every time step?
An excellent question. If you have a model with multiple time steps you can use a python code object to grab the time and create a unique python result. The python code object script example below will get the time steps: #analysis = ExtAPI.DataModel.Project.Model.Analyses[0] steps = analysis.AnalysisSettings.NumberOfSteps…
-
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).
-
PyMAPDL exits intermittently when run in a loop
Hi, I'm currently running a PyMAPDL script in a for loop. During each iteration, the script makes slight modifications to the mesh and performs a pre-stressed modal analysis. However, I'm encountering an intermittent issue where PyMAPDL exits with the following error message after few iterations: CRITICAL - pymapdl_global…
-
mapdl.post_processing.nodal_principal_stress return result differ from Mechanical APDL GUI
mapdl.post_processing.nodal_principal_stress("1") return result differ from Mechanical APDL GUI. other post process functions also exist errors when compared from Mechanical APDL GUI. although the error percentage is low, i still want to fix this problem.
-
How to move a contact object from one grouping folder to another?
I have grouped contacts as follows: I want to use scripting to move Contact1 to Group2 folder, how do I do that ?
-
HFSS 3D Layout: Encrypted 3D Component Bounding Box Intersection Mesh Hard Failure— Samtec GPPC
The following is a summary from Claude.ai about the debugging and problem I am facing, it was over a couple of days and working sessions, so I used the AI to summarize the data from me, which was unstructured bullet points and hard to follow. I have reviewed it for accuracy though. HFSS 3D Layout: Encrypted 3D Component…
-
How to find the closest pair of cylindrical faces with a specific radius in Mechanical scripting?
I have an Ansys Mechanical model with multiple cylindrical faces of 3mm radius distributed across different bodies. I want to write a Python script (in the Mechanical scripting console) that: 1.Finds all faces with a radius of 3mm and group faces who are adjacent 2.Identifies the closest pair of such faces based on…
-
In Mechanical, how to export animation file over a range of result sets instead of all result sets?
Mechanical doesn't have an option to choose a specific result set range to export animation and always exports the complete time history as an animation file. Eg: I have 10 result sets, but I want to export animation only for result set 1-3.
-
How to set Mechanical Graphics (Legend etc.) FontStyle using ACT?
How to set Mechanical Graphics (Legend etc.) FontStyle using ACT?
-
Extension to display a custom image on workbench
Is there something like this, where the user can create a custom system that receives an image and displays it, like on the picture i made below: