Finite Element solution to the 2nd Order Diff Equation with difussion and convection terms only

This function solves the following the following BVP using Galerkin method.
1.9K 次下载
更新时间 2009/10/30

查看许可证

au'(x)+bu"(x)=0 for 0<=x<=d
BC: u(0)=0 and u(d)=h
Example:
Finding an approximate solution to the following BVP using 16 elements of equal length.
u'(x)-u"(x)=0 : 0<=x<=1
BC: u(0)=0 and u(1)=1
Solution:
>> Galerkin(16,1,-1,1,1)
The result includes the plots as shown in the screenshot and the displacement and error matrix.

引用格式

Dr. Redmond Ramin Shamshiri (2024). Finite Element solution to the 2nd Order Diff Equation with difussion and convection terms only (https://www.mathworks.com/matlabcentral/fileexchange/25696-finite-element-solution-to-the-2nd-order-diff-equation-with-difussion-and-convection-terms-only), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

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