Giter Site home page Giter Site logo

physical-simulation's Introduction

Disclamer

Please reference all codes at your own discretion.
kthxbye

README

INPUT: (Tested and known parameters)
‘File_Name’ ‘timestepper_type’ ‘tilmestep’ ‘system_type’

Cloth Mode: 	“./a3 r 0.05 clo”
Pendulum Mode: “./a3 r 0.05 pen”
Simple Mode :	“./a3 r 0.05 sim”

Euler:		“./a3 e 0.01 pen”
Trapezoidal:	“./a3 t 0.01 pen”
RK4:		“./a3 r 0.01 pen”

key press:

  • ’s’ : SWING.
  • ‘w’ : Toggle wireframe. Smooth shading only when length = 4 and in cloth mode!
  • ‘r’ : Reset
  • ’t’ : Toggle between SimpleSystem, PendulumSystem and ClothSystem.
  • ‘x’ : Extend number of Particles. Only work for PendulumSystem and ClothSystem! Loop from 1 particle to 8 particles.
  • ‘q’ : WIND!

Never collaborate wth anyone. No help received, tried helping ng ping and nikhil a little.

No References.

Known problems: Smooth shading can only be done with length is 4. Because smooth shading is done with bezier, if length is more than 4, smooth shading has to be done with bspline instead. However i couldn’t make bspline interpolate the first and last point.

Extra Credits: 1) Random Wind Force 2) Smooth Shading (When Length == 4) 3) 4th Order Runge-Kutta time stepper

Physical simulation is quite fun!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.