Skip to main content
Ansys Developer Tips & Tricks - Python

Script Tip Friday - Examples of Python Results for Mechanical (Part 2)

| 01.13.2023

This script tip is the second of a two part series that covers four examples of Python results for Ansys Mechanical by executing an Iron-python script based on the Data Processing Framework (DPF) post-processing toolbox.

Ansys Developer Tips & Tricks - Python

Script Tip Friday - Examples of Python Results for Mechanical (Part 1)

| 12.16.2022

In this post, we cover two examples of Python Results: (1) get the maximum over time of the total deformation; and, (2) get the average total deformation on all time steps.

Ansys Developer Tips & Tricks

Script Tip Friday - Plot Design Point (DP) Results

| 11.18.2022

This PyDPF example shows a simple way to plot a deformation result for four design points (DP) in the same window.

Ansys Developer Tips & Tricks

Script Tip Friday - Efficiently Combining MAPDL and Mechanical Scripting

| 11.11.2022

Learn to efficiently combine Mechanical automation scripting and MAPDL scripting for a better post-processing workflow.

Ansys Developer Tips & Tricks - Python

Script Tip Friday - How to Plot Stress Gradient Using PyDPF

| 11.04.2022

This Script Tip Friday is brought to you by Ayush Kumar who is a Senior Application Engineer here at Ansys. Ayush will cover how to plot Stress Gradient on a path normal to the selected face at the selected node using PyDPF.

Ansys Developer Tips & Tricks

Script Tip Friday - Determining an Optimal Location for Components on a PCB

| 10.21.2022

What is the optimal location to place a component on a Printed Circuit Board (PCB), in terms of its reliability under shock, vibration, and other environmental conditions?

Ansys Developer Tips & Tricks - Python

Numbers and "numbers" in Python

| 10.06.2022

Numbers in Python are quite simple, there are only 3 base numeric types and they can all be combined freely without (inherent) errors. In this post I go over some information you'll probably know and some you might not. Read on for info about numbers!

Ansys Developer Tips & Tricks - Python

Python Standard Library Diving: copy

| 10.06.2022

One of the first things you learn in Python is that it passes references around when assigning things. It does not copy things in memory. So, how do you actually do copying? Well there's a built-in library to do it! copy.

Ansys Developer Tips & Tricks - Python

The Python Standard Library: getpass

| 10.05.2022

In this article I want to shine a light on one of the smaller and more useful packages in the Python standard library. Hopefully you know it already, but if you're coming across it for the first time, read on! This is all about getpass...