Easy build compact schemes

版本 1.0.0 (5.9 KB) 作者: Manuel A. Diaz
A Taylor-Table-Algorithm is presented to automate the computation of weights for centered/biased compact FDM schemes.
37.0 次下载
更新时间 2021/4/14

查看许可证

Here, we present a new algorithm that systematically solves the Taylor expansion coefficients problem for constructing implicit (compact) finite-difference schemes.
Although it is presented to construct up to 3rd-order differential compact schemes, we believe it is simple enough, so that users can easily extend it to obtain even higher-order schemes if necessary.

Also, we provide two examples:
The first example, demonstrates how to use the Taylor Table algorithm to recover well-known schemes in the literature. The second example, shows how to set a central compact scheme and complement it with suitable boundaries schemes. So that a (sparse) differential operator can be easily constructed ;)

Future work: In an expansion of these snippets I'll soon introduce a simple way to create 2D and 3D differential operators suitable for solving PDEs in Matlab ~stay tuned !

-M. Diaz

Happy coding !

引用格式

Manuel A. Diaz (2024). Easy build compact schemes (https://www.mathworks.com/matlabcentral/fileexchange/90506-easy-build-compact-schemes), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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