Easy build finite-difference operators

版本 1.0.0 (238.6 KB) 作者: Manuel A. Diaz
This snippet shows how to build any central/biased (explicit) finite-difference schemes and their associated 2D and 3D discrete operators.
93.0 次下载
更新时间 2021/4/15

查看许可证

Using Fornberg's weights algorithm [Fornberg, Bengt. "Generation of finite difference formulas on arbitrarily spaced grids." Mathematics of computation 51.184 (1988): 699-706.], this example shows how to construct its associated 2D/3D operators for producing differentiations on 2D/3D discrete functions.

This example seeks to be a complement to my 'Easy Build compact schemes' contribution. As this strategy can be directly applied to compact schemes too. ; )

This contribution contains three examples:
* An example on the use of Fornberg's weights algorithm to create FD schemes such as: centered, biased schemes over regularly- or irregularly-spaced domains.
* An example to construct a 2D differential and partial differential operator for a given function.
* Lastly, an example to construct a 3D differential and partial differential operator for a given function.

Happy coding !

引用格式

Manuel A. Diaz (2024). Easy build finite-difference operators (https://www.mathworks.com/matlabcentral/fileexchange/90541-easy-build-finite-difference-operators), 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