Dynamics#
DAVEs dynamics are in BETA. This is just an illustration of how to get the inertia and stiffness matrices and the corresponding degrees of freedom
from DAVE import *
DAVEcore version = 2.0 from c:\python\miniconda3\envs\book\Lib\site-packages\DAVEcore.cp311-win_amd64.pyd
! Blender not found - Blender can be installed from the microsoft windows store. if you have blender already and want to be able to use blender then please either:
- configure windows to open .blend files with blender automatically
- add the folder containing blender-launcher.exe to the PATH variable.
s = Scene()
a = s.new_frame('axis', fixed=False)
a.inertia = 100
a.inertia_radii = (1,2,2)
s.dynamics_M(delta=0.000001)
array([[100., 0., 0., 0., 0., 0.],
[ 0., 100., 0., 0., 0., 0.],
[ 0., 0., 100., 0., 0., 0.],
[ 0., 0., 0., 100., 0., 0.],
[ 0., 0., 0., 0., 400., 0.],
[ 0., 0., 0., 0., 0., 400.]])
s.dynamics_K(delta=0.3)
array([[-0., -0., -0., -0., -0., -0.],
[-0., -0., -0., -0., -0., -0.],
[-0., -0., -0., -0., -0., -0.],
[-0., -0., -0., -0., -0., -0.],
[-0., -0., -0., -0., -0., -0.],
[-0., -0., -0., -0., -0., -0.]])
s.dynamics_modes()
[0, 1, 2, 3, 4, 5]
[node.name for node in s.dynamics_nodes()]
['axis', 'axis', 'axis', 'axis', 'axis', 'axis']