Skip to content

Mypathissional/Cloth_simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloth_simulation based on Mass Spring Model

The following simulations were based on Explicit Euler's Method with

  1. K,stiffness equal to 200 and damping equal to 20

2) K,stiffness equal to 200 and damping equal to 0

To make your own animation adjust main.py if save_to_file=True, the resulting animation is made and saved in the root

else 3d animation plot is show can be useful if one wants to see the cloth from different perspectives

Choose the solver from ODE_solvers.py

1)ExplicitEulerStep()

2)ImplicitEulerStep()

3)RK4Step()

4)AdamStep(f_prev, order)

Then call solve__ODE

else if AdaptiveRungeKuttaFehlbergStep is used - call solve_adaptive_ODE