Physically Based Simulation on Gpu