STEM 隨筆︰古典力學︰向量【三】

為什麼不講 Sympy 古典力學向量用法,卻先安裝起

sudo pip3 install pydy 耶?

PyDy: Multibody Dynamics with Python

Introduction

Welcome to the PyDy project website. PyDy, short for Python Dynamics, is a both a workflow that utlizes an array of scientific tools written in the Python programming language to study multibody dynamics and a set of software packages that help automate and enhance the workflow. The core of this toolset is the SymPy mechanics package which generates symbolic equations of motion for complex multibody systems and PyDy which extends the SymPy output to the numerical domain for simulation, analyses, and visualization. PyDy builds on the popular scientific Python stack such as NumPy, SciPy, IPython, matplotlib, Cython, and Theano.

 

※ 依發行文件驗證安裝

 

PyDy Package’s documentation!

This is the central page for all PyDy’s Documentation.

PyDy

Latest Released Version anaconda Latest documentation travis-build appveyor gitter

PyDy, short for Python Dynamics, is a tool kit written in the Python programming language that utilizes an array of scientific programs to enable the study of multibody dynamics. The goal is to have a modular framework and eventually a physics abstraction layer which utilizes a variety of backends that can provide the user with their desired workflow, including:

  • Model specification
  • Equation of motion generation
  • Simulation
  • Visualization
  • Publication

We started by building the SymPy mechanics package which provides an API for building models and generating the symbolic equations of motion for complex multibody systems. More recently we developed two packages, pydy.codegen and pydy.viz, for simulation and visualization of the models, respectively. This Python package contains these two packages and other tools for working with mathematical models generated from SymPy mechanics. The remaining tools currently used in the PyDy workflow are popular scientific Python packages such as NumPy,SciPy, IPython, and matplotlib (i.e. the SciPy stack) which provide additional code for numerical analyses, simulation, and visualization.

……

 

因為豐富之文件以及範例,利於學習也!

Documentation

General

If you are familiar with scientific computing and symbolic manipulation with Python you should start with the SymPy vector/mechanics documentation and the PyDy documentation:

If you aren’t familiar with scientific computing with Python there are many sources to learn. You can start with the Python programming language itself, with the canonical source being thePython Documentation. The SciPy Lectures are a great intro to scientific computing with Python. Finally, to learn about how to do symbolic manipulation with SymPy, check out the SymPy Documentation, especially the tutorial.

Tutorials

We have a couple of tutorials. The human standing tutorial takes you through an entire workflow for a dynamics and control problem and is a good place to start.

Examples

There are additionally a variety of examples which can be found here:

………

 

打算閱讀 Kane 先生

AUTHOR
Kane, Thomas R.; Levinson, David A.
ABSTRACT
This textbook is intended to provide a basis for instruction in dynamics. Its purpose is not only to equip students with the skills they need to deal effectively with present-day dynamics problems, but also to bring them into position to interact smoothly with those trained more conventionally.

───

 

著作者,也可藉

pydy/examples/

These are examples of using PyDy to derive, simulate, and study the motion of classical dynamic systems. The equations of motion for the systems are typically derived with SymPy Mechanics in symbolic form and then numerical analyses is done with PyDy and various other tools in the SciPy Stack. Although some examples also show cross language support for numerical analyses.

Each folder contains the files for one example. To contribute an example, make a pull request with a new directory. The new folder should include, at the minimum, a README explaining the problem, a figure (preferably SVG), and the source code for the example either in script form or as an IPython notebook. There should also be a file named run.py that executes the example.

 

pydy/examples/Kane1985/

Chapter2 Fixed unused imports in code and examples.
Chapter3 Fixed unused imports in code and examples.
Chapter4 Reverted uninentionally removed but needed imports.
Chapter5 Fixed unused imports in code and examples.
Chapter6 Fixed unused imports in code and examples.

 

多練習熟悉其法乎◎