AgentFEM-Pipe-Components / source /example_dynamic.py
HaomingLuo's picture
Pipe Assembly Lab v1.1: validated viscous damping, comparison and project delivery (part 2)
757df37 verified
Raw History Blame Contribute Delete
436 Bytes
"""Run after downloading the AgentFEM-Pipe-ROM repository. Apache-2.0."""
from pipe_rom import component
from dynamics import free_decay
chain=[component('straight-d200-t06-r5'),component('elbow-d200-t06-r2'),component('straight-d200-t06-r5')]
r=free_decay(chain,node=3,axis=2,c=1000.)
print('Peak sampled damper force / N:',abs(r['force']).max())
print('Energy remaining after six first-mode periods:',r['energy'][-1]/r['energy'][0])