Pre-Conference Course: Introduction to the Python Programming Language for Structural Dynamics Applications
Rosen Plaza Hotel, Orlando, FL | January 29–February 1, 2024
Introduction to the Python Programming Language for Structural Dynamics Applications
Sunday, January 28, 2024 | 9:00 a.m.
Open-Source Tools have become widespread in several scientific disciplines. The free and open-source Python programming language has become a serious competitor to Matlab as a scripting language for performing scientific analyses. There are now several major Structural Dynamics Python packages that are in development or have been released, such as PyFBS, Rattlesnake Vibration Controller, SDynPy, and SDyPy. It is now possible to perform the entire Structural Dynamics workflow using only free and open-source software. Moving Structural Dynamics into open source provides numerous benefits: students can examine code to learn exactly how various algorithms work, researchers can tinker with the code to explore new solutions without having to code everything from scratch, and practitioners can execute their tests or analyses in software that isn’t simply a “black box.”
This course is designed for current Matlab users (or users with basic proficiency in other programming languages) who are interested in learning Python and how to use some of the Structural Dynamics tools that are available. This course will introduce the basics of the Python programming language with examples motivated by structural dynamics applications. A brief demonstration using Structural Dynamic packages will also be provided. Students are encouraged to attend with their own computers to work along with the tutorials. The instructors will send out instructions for installing the required tools prior to the class, so students can come prepared with the needed software already installed.
Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidiary of Honeywell International Inc., for the U.S. Department of Energy’s National Nuclear Security Administration under contract DE-NA0003525.
Introduction to Python
- Introduction – 9:00 AM
- Discussion of Open-Source Software
- General overview of the Scientific Python Ecosystem
- Basic Python – 9:30 AM
- Python Syntax
- Data Types
- Coffee Break – 10:30 AM
- Container Data Types and Program Flow – 10:45 AM
- Container Objects
- NumPy Arrays
- For and While Loops
- Functions – 12:15 AM
- Function Definition and Usage
- Return Statements
- Argument Unpacking
- Keyword vs Positional Arguments
- Lunch – 1:00 PM
- Numerical Calculations with NumPy – 2:00 PM
- Finding and Using Documentation
- Plotting with Matplotlib – 3:00 PM
- Basic Plotting
- Using Subplots
- Coffee Break – 3:30 PM
- Interactive Coding Exercise: Computing FRFs from Time Histories – 3:45 PM
- Loading Time Data
- Splitting up Data into Frames
- Applying Window Functions
- Computing FFTs
- Computing Power Spectra and Averaging
- Computing H1 Estimator
- Packaging into a Function for reuse
- Function Optimizations and Vectorization
- Structural Dynamics Demonstration with SDynPy and Rattlesnake – 4:30 PM
- Load a Pre-test Finite Element Model
- Perform Sensor Optimization
- Modal Test Demonstration
- Mode Fitting
- Comparison to FEM
- Class Released – 6:00 PM
Dan Rohe: Dr. Daniel Rohe is a Principal Member of the Technical Staff at Sandia National Laboratories. Dan works in the Experimental Structural Dynamics department where he specializes in dynamic characterization testing using non-contact diagnostics and MIMO vibration control. Dan has spent the last few years writing software for structural dynamics applications which have been released open source as the Rattlesnake, a MIMO Vibration Controller, and SDynPy, a Structural Dynamics Python Library.
Steve Carter: Steven Carter is an experienced NVH and structural dynamics engineer with 10 years of experience in the automotive and aerospace industries. He currently works in the Experimental Structural Dynamics department where he specializes in inverse force estimation and MIMO vibration control. Steve has made significant contributions to the SDynPy Python library in the areas of Transfer Path Analysis and MIMO Vibration.
Brandon Zwink: Dr. Brandon Zwink currently works with Sandia National Laboratories as an independent contractor and has been studying in structural dynamics since 2007. Brandon worked as a full time Sandian for three years and has been contracting with Sandia for the last 8 years. Brandon recently completed his PhD with Dr. Pete Avitabile at the University of Massachusetts Lowell. Brandon has been using Python and the SDynPy library to solve real world structural dynamics problems, and he has also assisted in development of the SDynPy library by adding functionality and ensuring smooth integration with Apple computers.
The regular course fee is $500 and the student fee is $250. Course fee includes lunches, course handout material, and refreshment breaks. Lodging and additional food or materials are not included.
If the course is cancelled for any reason, the Society for Experimental Mechanics’ liability is limited to the return of the course fees.
Attendees are encouraged to bring their own laptops. None will be provided.