-
ATTENTION NEW USERS! READ THIS POST BEFORE DOING ANYTHING!
Hello all! Unfortunately the forum has recently been the victim of a spam attack, which you may have seen. We've got it under control but whilst we work to shore up the walls, so to speak, we have unfortunately gone into lockdown and you will not be able to post anything for a while. Please bear with us whilst we address…
-
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…
-
How to change the solve process setting using Python Scripting
Hello, how can I use python scripting or pymechanical to change the solve process setting inside ansys mechanical GUI? what I want to change is for example from "my computer" to an RSM setting, or to change the # of cores, or from shared memory to parallel, etc. I don't believe this is part of the common access points?
-
How to assign a legend style to an object by referencing the guid in Ansys 2025R1
@Landon Mitchell Kanner I have been using the same commands that you have posted here for some releases. However, they stopped working in one of the 2024 releases and are not working in 2025R1: What commands can I use in 2025R1? Python is of course preferred.
-
How to create and fill a spline object in Motion?
How to create and fill a spline object in Motion (2024R2 and newer)?
-
How to export Animations from Mechanical in batch from WB script?
I have a Modal analysis system with 100 deformations. I want to export all the animations in batch via WB scripting. All my deformations are grouped in a folder whose id can be used as an input to locate the result objects.
-
Can I create a custom worksheet?
I'm currently using a modified version of the PGEditor (see "C:\Program Files\ANSYS Inc\v###\Addins\ACT\libraries\Mechanical\Worksheet\PropertyGroupEditor.py") to build a table of data for the user to see mesh info (e.g., number of elements, nodes, etc.) for each specified named selection. This is associated with a custom…
-
Get mesh information of crack propagation with ACT Python
Hi, I deal with crack propagation in Ansys. For testing, I use a simple example (half elliptical surface crack in cylinder under longitudinal load): The simulation has 40 substeps (the mesh of the model is therefore changed 40 times by extending the crack). Now I want to get the crack front coordinates of each substep. To…
-
How to generate field lines on specific points via scripting
I have the coordinates of a set of points, and I would like to generate the field lines along these points. There should be one field line per point. Using the GUI, I can do this by adding markers on the coordinates of the points and then creating a Field Line Trace Plot. From the corresponding dialogue box, one can tick…
-
Align 3D Body's Face and a Plane in parallel
I'm looking for a quick solution how I can align a face of a body (a cube for example) and a plane in parallel in the same operation. I'd like it to align and rotate around it's own Y axis at the same time. I tried this code below bu all I get is: expected HandleAxis, got CoordinateAxis selection =…
-
Friction Coefficient definition for each timestep
Is it possible to add a functionality to an already existing object? Let's say I've got 100 non-linear contacts and 100 analysis steps. I'd like to script a block or ACT app in order to be able to change a friction coefficient for each contact and each timestep. I know there is a "Contact Step Control" object which allows…
-
How can I open an existing .wbpj file by using an IronPython script?
Hi Everyone, I want to automatically run hundreds of transient thermal simulation and export the result data, what I have done until now includes: 1) successfully wrote an IronPython script that could command the ANSYS Mechanical to run the simulations in turn and export the data files. This script was written in…