Skip to main content
Ansys Developer Tips & Tricks - Python

Python Standard Library Diving: copy

James Derrick | 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.

Read more about Python Standard Library Diving: copy
Ansys Developer Tips & Tricks - Python

The Python Standard Library: getpass

James Derrick | 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...

Read more about The Python Standard Library: getpass
Ansys Developer Tips & Tricks - Python

Converting Nodal Coordinates Field to Local Coordinate System

James Derrick | 09.30.2022

We cover the steps for converting the Nodal Coordinates Field to Local Coordinate System using PyDPF.

Read more about Converting Nodal Coordinates Field to Local Coordinate System
Ansys Developer Tips & Tricks - Python

How to make peace with argparse

James Derrick | 09.24.2022

A huge part of any Python developer's arsenal is the ability to link your Python program with "other stuff".

Read more about How to make peace with argparse
Ansys Developer Tips & Tricks

Script Tip Friday: Getting it right the first time for Mould Compensation

Ansys Developer | 09.23.2022

For this week's Script Tip Friday, Fabio Pavia, discusses how you can design for an optimal mould shape in 3 steps using partner tools for composites connected to Ansys Mechanical.

Read more about Script Tip Friday: Getting it right the first time for Mould Compensation
Ansys Developer Tips & Tricks - Python

Integrating images and plots using a Python Code object (Cpython)

mark.capellaro… | 09.23.2022

Python Code objects in Ansys 2022R2 allow the user to change the engine to Cypthon. This opens the door to using more modern python libraries and modules.

Read more about Integrating images and plots using a Python Code object (Cpython)
Ansys Developer Tips & Tricks

Find the time-varying center of gravity location of a deforming model

Ansys Developer | 09.16.2022

We cover the steps to find the time-varying center of gravity location of a deforming model using DPF in mechanical.

Read more about Find the time-varying center of gravity location of a deforming model
Ansys Developer Tips & Tricks

How To Plot Spring Force as a Contour Plot Using DPF

ayush.kumar@an… | 09.09.2022

Using the scoping.on_mesh_property operator to extract the COMBIN14 (spring element) mesh, users can extract the MAPDL smisc results for spring forces with the mapdl.smisc operator.

Read more about How To Plot Spring Force as a Contour Plot Using DPF
Ansys Developer Tips & Tricks

Reconstructing specific APDL results with DPF

pierre.thieffr… | 09.02.2022

SDSG is an element quantity that is the maximum difference between the nodal average value and the elemental nodal value for all nodes of the element (for all components of stress). Here we look at the ability to display SDSG results in Mechanical.

Read more about Reconstructing specific APDL results with DPF

Connect with Ansys