Download example_dynamic.py from HaomingLuo/AgentFEM-Pipe-ROM: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/HaomingLuo/AgentFEM-Pipe-ROM/resolve/main/example_dynamic.py
- Command line
-
hf download hf://HaomingLuo/AgentFEM-Pipe-ROM/example_dynamic.py
-
curl -L -o example_dynamic.py https://huggingface.co/HaomingLuo/AgentFEM-Pipe-ROM/resolve/main/example_dynamic.py
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]) | |