Skip to main content
classes in python

Getting started with classes in Python Part 8: "dunder"

James Derrick | 01.29.2025

This series on classes in Python continues. This article introduces "dunder" methods and how they might apply to classes.

Read more about Getting started with classes in Python Part 8: "dunder"
classes in python

Getting started with classes in Python Part 7: getters and setters

James Derrick | 01.21.2025

Here we are with Part 7 in this series on classes in Python. This article covers setters (the method on a class that sets a property) and getters (which gets the property).

Read more about Getting started with classes in Python Part 7: getters and setters
classes in python

Getting started with classes in Python Part 6: Public, Private and Super-Private Naming

James Derrick | 12.30.2024

Part six of ten in this series on classes in Python covers the levels of obfuscation available in Python: private and super-private.

Read more about Getting started with classes in Python Part 6: Public, Private and Super-Private Naming
Python tips & tricks

Using Python to translate NASTRAN .brd inputs to APDL inputs

mark.capellaro… | 12.16.2024

Python is quite good at reading, writing and finding things in text files. This allows us to develop tools that can be used to find data in NASTRAN inputs files and create the ANSYS APDL equivalent.

Read more about Using Python to translate NASTRAN .brd inputs to APDL inputs
getting started with classes in python

Getting started with classes in Python Part 5: `classmethod` and `staticmethod`

James Derrick | 12.03.2024

This series continues by exploring two notable exceptions to the self parameter for methods, classmethod and staticmethod.

Read more about Getting started with classes in Python Part 5: `classmethod` and `staticmethod`
tips & tricks

Aligning external imported data with your Mechanical Model via Python scripting

[email protected] | 11.20.2024

This article walks users through creating coordinate systems from the coordinates of three non-colinear points, and then using two coordinate systems to align the external imported data with the current Mechanical model. This tool allows users to eliminate the guesswork from the alignment process and improve the accuracy of data alignment.

Read more about Aligning external imported data with your Mechanical Model via Python scripting
getting started with classes in python

Getting started with classes in Python Part 4: Hashing & Mutability

James Derrick | 11.18.2024

Part-four of this series sees us move from the "basic" knowledge required to understand classes and into more "intermediate" topics - starting with mutability of dataclasses.

Read more about Getting started with classes in Python Part 4: Hashing & Mutability
Starting with classes in Python

Getting started with classes in Python Part 1: Anatomy of a Class

James Derrick | 10.18.2024

In Python you may hear this phrase said a lot "everything is an object", which they are! Objects, that is.

Read more about Getting started with classes in Python Part 1: Anatomy of a Class
Starting with classes in Python

Getting started with classes in Python

James Derrick | 10.17.2024

Understand the basics of programming in Python but heard a lot about "classes" without being sure what they are or how they'd be useful to you? This article series is for you.

Read more about Getting started with classes in Python

Connect with Ansys