myASC-ODE Simulation Framework#
Welcome to the myASC-ODE simulation framework documentation. This book contains interactive simulations and analysis of mechanical systems using C++ and Python.
Contributors
Constantin Pierer
Jonas Gastecker
Lukas Lechner
Features#
Kreisel Systems: Simulating a spinning Kreisel
Crane Dynamics: Realistic crane structure modeling with vibration analysis
Interactive Simulations#
This book contains fully interactive Jupyter notebooks with:
Real-time 3D visualizations
Dynamic parameter adjustments
Comprehensive analysis tools
Only the user-friendly interface is implemented in Python; all performance-critical computations are handled by the underlying C++ framework.
Explore the interactive notebooks to see the simulations in action! We will first briefly mention some of the theory behind the implemented methods.
Solving a Mass Spring System with a generalized \(\alpha\) Method#
In an effort to avoid the instabilities that the Newmark method leads to for non linear ODEs, we can introduce the generalized \(\alpha\) method. We recall the Newmark scheme for a second order ODE
to be given as
where \(v_n = \dot{x}_n\) and \(a_n = M^{-1} F(x_n)\).
For a damping parameter \(\rho^\infty\), we can introduce the new variables
and set
to get to the generalized \(\alpha\) method formulation
Systems with constraints#
We want to implement a way to model joints between two masses. For this, we introduce systems with constraints. We define the Lagrange function for a constrained system as
with
being the length constraint.
This leads to the second order system of ODEs
This system can be solved using the generalized \(\alpha\) method.