Advertisement

Pretty wack fluid simulations

Started by April 28, 2018 06:49 AM
0 comments, last by lucky6969b 6 years, 9 months ago

I tried this project today.

but the result is just too wacky.

https://github.com/Computer-Graphics/Particle-based-Viscoelastic-Fluid-Simulation

How should I fix this?


	#define PARTICLE_RADIUS 0.1
#define delT 0.5f //in seconds
#define k 0.004f //stiffness parameter
#define k_near 0.01f //near stiffness parameter
#define h 1.0f //interaction radius
#define rho_0 10.0f //rest density
#define k_spring 0.3f //spring constant
#define gamma 0.1f //yield ratio
#define alpha 0.3 //plasticity constant
#define L_ 0.1f //spring rest length
#define sigma 1 //for viscosity
#define beta 1 //for viscosity
	

fluid.png

This topic is closed to new replies.

Advertisement