Fast Euler and Navier-Stokes fluid flow simulation
Here are two examples of videos:
http://www.youtube.com/watch?v=rCxkKp8Ngw4
http://www.youtube.com/watch?v=9QJahw5tBV8
The colors show the vorticity of the flow.
Enter the command line:
simulation_euler_flow(l,L,lambda_max)
where L and l are the width and height of the box containing the fluid and lambda_max is an integer that will be used to determine the number of degrees of freedom (the larger it is, the better the simulation will be but the longer the computation will last). As a first guess, you can try : l = 4, L = 3 and lambda_max = 60.
Once the computation is done, enter:
film = graph_flow_euler
to make a Matlab movie.
Cita come
Alexandre Munnier (2025). Fast Euler and Navier-Stokes fluid flow simulation (https://it.mathworks.com/matlabcentral/fileexchange/29158-fast-euler-and-navier-stokes-fluid-flow-simulation), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Sciences > Physics > Fluid Dynamics >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 | 
