Puddle Lab

版本 1.0.3 (2.8 KB) 作者: Nathaniel Barlow
Interactively makes waves in a numerical puddle
11.0 次下载
更新时间 2024/3/12

查看许可证

Interact in real time with a numerical puddle. Each mouse click (or tap on a touchscreen) iniaties a Gaussian disturbance at the location touched. You may iniate as many disturbances as you like*. As is, the disturbances will convect outwards as goverened by the standard 2D wave equation. Click on the "dispersion" box and you will see ripples, associated a 2D biharmonic operator (a surface tension term). Click on the "diffusion" box to see waves damp, in accordance with a first-derivative in time being turned-on. You may also control the strength of these properties with sliders. You may reset the puddle at any time by clicking "reset". When you are done (perhaps you wish to take a picture of what you created), click "done". The problem is solved analytically in time and using the Fourier spectral method in space (so periodic boundaries).
Using the biharmonic operator is inspired by the work of Huber et al.(2023), https://doi.org/10.1016/j.wavemoti.2022.103083.
Reccomended uses for this: (i) meditation, (ii) making art, (iii) put on a big touch display as an exhibit to teach about the properties of waves.
*A time limit is imposed (by tmax) but you can change this. I left if running and forgot about it for too long. My fan got loud. That's why its there.

引用格式

Nathaniel Barlow (2024). Puddle Lab (https://www.mathworks.com/matlabcentral/fileexchange/160936-puddle-lab), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.3

Provided credit for inspiration in code and description.

1.0.2

Same as last update. Forgot to upload new file before.

1.0.1

It now runs in matlabonline through the browser. I included a line to check for this and dock the figure.

1.0.0