This shows you the differences between two versions of the page.

numerics:matlab_samples [2008/04/24 13:21] jonas |
numerics:matlab_samples [2011/10/29 19:08] (current) |
||
---|---|---|---|

Line 1: | Line 1: | ||

====== CFD made easy: Matlab showcases ====== | ====== CFD made easy: Matlab showcases ====== | ||

- | It is extremely easy to implement lattice Boltzmann applications in regular geometries. The following Matlab scripts are only one or two pages long. Furthermore, they are self-consistent and merely use the basic matrix formalism of Matlab. They do not invoke external routines such as linear algebra packages or differential equation solvers. And yet, complex flows are simulated with high accuracy. The following 2D showcases include a lid-driven cavity, Rayleigh-Benard convection and segregation of species in a multi-component fluid. | + | It is extremely easy to implement lattice Boltzmann applications in regular geometries. The following Matlab scripts are only one or two pages long. Furthermore, they are self-consistent and merely use the basic matrix formalism of Matlab. They do not invoke external routines such as linear algebra packages or differential equation solvers. And yet, complex flows are simulated with high accuracy. The showcases include a lid-driven cavity, Rayleigh-Bénard convection and segregation of species in a multi-component fluid. In each case, a free Matlab script is available for download. |

===== Lid-driven cavity ===== | ===== Lid-driven cavity ===== | ||

Line 9: | Line 9: | ||

</box> | </box> | ||

- | ===== Rayleigh Benard convection ===== | + | ===== Rayleigh-Bénard convection ===== |

Here is{{numerics:rayleighBenard.m|the Matlab code}} which computes the following temperature-driven flow. | Here is{{numerics:rayleighBenard.m|the Matlab code}} which computes the following temperature-driven flow. | ||

<box 380px round blue|Rayleigh-Benard convection> | <box 380px round blue|Rayleigh-Benard convection> |