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 Downloads
Updated 30 Oct 2009

View License

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.

Cite As

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. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Symbolic Math Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0