Code covered by the BSD License  

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

5.0

5.0 | 1 rating Rate this file 11 Downloads (last 30 days) File Size: 2.54 KB File ID: #25696
image thumbnail

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

by Ramin Shamshiri

 

30 Oct 2009

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

| 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)
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
numerical solution 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
self_rating Matt Fig 03 Nov 2009 12:08:17
galerkin method YZU Shiyuan 09 Jan 2010 05:41:30

Contact us at files@mathworks.com