Getting started with classes in Python Part 7: getters and setters
James Derrick | 01.21.2025Here 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).
Getting started with classes in Python Part 6: Public, Private and Super-Private Naming
James Derrick | 12.30.2024Part six of ten in this series on classes in Python covers the levels of obfuscation available in Python: private and super-private.
Using Python to translate NASTRAN .brd inputs to APDL inputs
mark.capellaro… | 12.16.2024Python 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.
PyWorkbench Unleashed: Transforming Your Ansys Workbench End-to-End Simulation Experience
vikas.namdeo@a… | 12.09.2024PyWorkbench is a powerful client library that enhances the Ansys Workbench platform for engineering simulations. This guide introduces key concepts and practical strategies for using PyWorkbench, making your engineering simulations more efficient and effective.
Getting started with classes in Python Part 5: `classmethod` and `staticmethod`
James Derrick | 12.03.2024This series continues by exploring two notable exceptions to the self parameter for methods, classmethod and staticmethod.
Aligning external imported data with your Mechanical Model via Python scripting
[email protected] | 11.20.2024This 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.
Getting started with classes in Python Part 4: Hashing & Mutability
James Derrick | 11.18.2024Part-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.
Getting started with classes in Python Part 3: Methods and properties
James Derrick | 11.05.2024Part-three in a ten-part series, this article introduces adding methods to your data classes.
Getting started with classes in Python Part 2: `dataclasses`
James Derrick | 10.29.2024Part-two of this series covers constructing one of the simplest and most useful types of class, data classes and the reasons you may want to do this in the first place.