Skip to content

TianxingWu/liquid-foam-simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquid Foam Simulation

4 May 2019:

  • Add mode selection function
  • Add multi-obstacles mode

What's this

This is a Matlab project for simulating liquid foams.

The algorithm is based on the method presented by the paper in Reference with some modifications. To improve computing efficiency, it has been optimised to a vectorized version.

This project may also be useful for designing a decentralised flocking algorithm for robotic swarms.

How to use

Put the two m-files (a script file and a function file) in the same directory, then run the script file simulate.m

The main algrithm is presented in the function file computeNext.m.

You can modify the setting parameters in simulate.m.

Reference

[1] Kueck, Hendrik & Vogelgsang, Christian & Unther Greiner, G. (2002). Simulation and Rendering of Liquid Foams. Proceedings - Graphics Interface.

[2] D. Weaire and S. Hutzler. The Physics of Foams. Oxford University Press, 1999

About

Simulation of bubbles in liquid foams using matlab

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages