Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Softbody Earthquake toy simulation in the command line with fixed presets, visualization video and multiple figures.

License

NotificationsYou must be signed in to change notification settings

Elixonus/softquake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulates the movement and stress of softbody buildings under the effect of earthquakes.

Softbody Earthquake Video GIF

Running

Requires several libraries listed in therequirements.txt file

python softquake/main.py

The program works by writing information and reading from the user line by line (from lists of presets) to process user input as the simulation parameters(in other terms, reads from standard input).

About

Softbody structure is assumed to:

  • Have Hookean springs and dampeners connecting the set of nodes.
  • Have a self collision property.
  • Have no effect on the earthquake plate.
  • Be under the influence of gravity.

Earthquake plate is assumed to:

  • Be constrained to horizontal motion.
  • Move based on a singular sine with specific frequency and amplitude.
  • Have no frictional interaction with the softbody.

Simulation is implemented to:

  • Use a verlet integrator scheme.
  • Use accurate distance and time units.
  • Measure and visualize the contraction and expansion of the individual triangles in the mesh.
  • Account for the effect of external forces.
  • Use Delanuay triangulation for mesh.

Visualization is made to:

  • Make a real-time video diagram using the amazing PyCairo and FFmpeg libraries.
  • Show motion of a node of interest(sensor) in time.
  • Do spectral analysis of the horizontal acceleration of sensor.

About

Softbody Earthquake toy simulation in the command line with fixed presets, visualization video and multiple figures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp