-
Simulation is pretty *cool* but how *cool* is it really?
Back in 2024 I presented a little introduction to simulation at PyCon. Introduction to Simulation And in that presentation I asked a fundamental physics question. If a heavy cat sits on a bridge of ice. Does that bridge break? But in that situation everything was simply two dimensional (to save time). But what if it…
-
Is your scripting up to scratch?
We want to hear from you! What's the most useful Ansys scripting tip you've found? It could be on the forum, in documentation, or anywhere else. It just has to be... * About Ansys * A developer tool tip (to do with coding or PyAnsys) * Something small, like a specific command or tool you noticed We'd love if you could…
-
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…
-
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…
-
Question – APDL Coding for Multi-Step Moment Loading and Rotation Extraction
1.Assign a Remote Point and link the data of the corresponding edge to Measure_Point through a command.| * Apply a moment using a tabular input, divided into a total of 10 steps. * In Solution → Command (APDL), when applying the moment in 10 steps, write code to extract the rotation angle at each step. Problem: In this…
-
How would I extract the Centre of Mass from Named Selections
If I wanted to extract the Centre of Mass of bodies I selected within a named selection to a CSV file, how would I be able to do this with Ansys Mechanical scripting?
-
PyAnsys - Running PyDPF Script for Large Model
Hi, I have a customer trying to run a PyDPF script on a harmonic analysis model with 4 million nodes and 150 frequency values yielding an rst file 260GB in size. The script is able to extract stresses and accelerations as expected, but when trying to extract element nodal forces, it throws an error:…
-
Can you use a CSV file as input to modify existing surface loads in mechanical?
Hello, I am new to the stress analysis roll at my company. I was given a model that applies 400+ forces, all of which are scoped by individual named selections. None of the named selections were defined by remote point (No remote points exist). Each Force is applied by surface effect with force components entered via…
-
LS-DYNA Fails to Run via PyDyna Due to Missing lscasedriver.exe
I'm working on a simulation project using LS-DYNA and integrating it with a Python-based workflow using PyDyna. The same .k file runs successfully in GUI (Graphical User Interface) mode, but fails when executed via PyDyna. from ansys.dyna.core.run import run_dynarun_dyna("test.k", working_directory=r"../test3") >>> test.k…
-
Mesh transition from fine mesh to coarse mesh
Hello everyone, I would like to have a clean, if possible, sweepable mesh transition from a pipe cross-section with different wall thicknesses and a chamfer, which is generated as a solid model. As an example, the lower part is meshed with a 40 mm mesh and the upper part with a 60 mm mesh. Both the lower and upper parts…
-
How to retrieve data from rst file efficiently (memory, and time) using pyAnsys?
Hello, i am trying to retrieve displacements for select nodes in a very large rst file (>800 gb) in order to do a sumproduct on the results files (mode shapes) with modal displacements that i have computed in a third party software. I have tried the pyMAPDL method, which executes, but provides the incorrect displacements…
-
How to plot stress envelope S1max - S3max over multi-step analysis
Hi all, I'm working in Ansys Mechanical 2025 R2, using a Python Result object to extract and visualize the principal stress envelope (S1 − S3) over time. Hi all, I'm working in Ansys Mechanical 2025 R2, trying to use a Python Result object to extract and visualize the principal stress envelope (S1 − S3) over time. Here’s…
-
Python Script for Multi-Step Analysis: Activating/Deactivating Loads Per Step
Hello everyone, I am trying to automate a multi-step analysis in the Static Structural module using Python scripting from the Automation tab. My goal is to configure the loads and supports as follows: Gravity: This must be active in all analysis steps. Displacements: I have multiple displacement boundary conditions. For…
-
Random color material
Hello, Here is my problem : * When I create my materials in Workbench, I do not always change the color and/or sometimes, we many materials, colors are similar * So, In Mechnaical, when I display the geometry with color corresponding to material, it's not always simple My question : Is there a python function which is…