/rbdyn

Solve Rigid-Body-Dynamics problems: calculate energy, given initial conditions calculate futher kinematics positions, and vibration modules.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Rigid Body Dynamics

PyPi Version PyPI pyversions Tests

Rigid Body Dynamics problems

RBDyn problems are described as:

  • There are some rigid objects in the space
  • The relation between the objects is known
  • We know the initial condition for each object.
  • We want the values in further times:
    • Kinematic: position, velocity and acceleration
    • Reactions: Force and Moment

An example is a connecting rod of a motor:

biela

So, this library does the simulation and returns the requested values: position, forces and so on.

For more details, please see our Start Guide.

Installation

We use python with the following libraries:

  • numpy: Used for vector calculs
  • sympy: Used to calculate the algebric derivative

This library is available in PyPI. To install it just enter the line

pip install compmec-rbdyn

Or install it manually

git clone https://github.com/compmec/rbdyn
cd rbdyn
pip install -e .

For the tests we use pytest. Type the command in the main folder

pytest

Documentation

All the documentation is in our wiki, with theory and examples.

Contribuition

Please use the Issues or refer to the email compmecgit@gmail.com