5.0

5.0 | 1 rating Rate this file 93 downloads (last 30 days) File Size: 2.54 KB File ID: #25696

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

by Ramin Shamshiri

 

30 Oct 2009

Code covered by BSD License  

This function solves the following the following BVP using Galerkin method.

Download Now | Watch this File

File Information
Description

 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.

MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files Galerkin.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
03 Nov 2009 Francis Kiker

It was really helpful for me, thank you so much!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
differential equation Ramin Shamshiri 02 Nov 2009 10:14:25
finite elemenets Ramin Shamshiri 02 Nov 2009 10:14:25
galerkin method Ramin Shamshiri 02 Nov 2009 10:14:25
interpolation Ramin Shamshiri 02 Nov 2009 10:14:25
mathematics Ramin Shamshiri 02 Nov 2009 10:14:25
numerical solution Ramin Shamshiri 02 Nov 2009 10:14:25
self_rating Matt Fig 03 Nov 2009 12:08:17
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com