Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
There was try to simulate 2d liquid in rectangle vessel without air in matlab. The idea was to use voronoi graph to separate liquid into pieces. Each piece has forces:
1) friction from neighbor, proportional to contact edge length
2) friction from wall if any
3) pressures from neighbor
Each piece has pressure that defined from area of polygon and compare it with initial area. Voronoi diagram is plotted over extended set of point. The extended set of point is original points plus 4 mirrored set of points. Each mirror is mirror from each wall. This trick is need to make walls.
Each piece has mass and F=m*a equations are integrated with Euler's method. In this video initial condition is liquid rotation.
Found problems:
1) Slow computation expensive code
2) There are some oscillations of masses that's looks unnatural
See animation here:
http://www.youtube.com/watch?v=2X_LD7-FYFw
Citar como
Maxim Vedenyov (2026). 2d liquid simulation (https://es.mathworks.com/matlabcentral/fileexchange/30234-2d-liquid-simulation), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.0.0.0 (7,78 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0.0 |
