0% found this document useful (0 votes)
12 views

MATLAB Tutorial

Uploaded by

Uday Chaudhary
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

MATLAB Tutorial

Uploaded by

Uday Chaudhary
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CLL110: Transport Phenomena

Department of Chemical Engineering, IIT Delhi


MATLAB Tutorial
September, 2024

1 Problems
This section focuses on solving the transport problems numerically, the next
section has some basics to know for solving these equations using MATLAB.

1.1 Flow through a narrow Slit (Two point BVP)


Obtain the governing equation for a fluid flowing through a narrow slit (refer
to Fig. 1 ) in terms of velocity of fluid, vz .
Clearly specify the Boundary Conditions and solve the problem numerically
using MATLAB.

Fig. 1: Fluid Flowing through a Slit

1.2 Flow on an Inclined Surface (Mixed Boundary BVP)


Derive the governing equation for the flow over an inclined surface as shown in
Fig. 2, in terms of fluid velocity. Use the governing equation with appropriate
Boundary Conditions to obtain a numerical solution.

1
Fig. 2: Falling Film on an Inclined Surface

2 Some Basic Concepts


Why do we use MATLAB? MATLAB is a tool which is widely used to solve
differential equations, providing us directly the solutions instead of applying the
Numerical Techniques.

To download MATLAB, Sign In/ Sign Up using IIT Delhi Credentials:


https://in.mathworks.com/academia/tah-portal/indian-institute-of-technology-
delhi-40761481.html

Below are some of the important aspects necessary while solving ODEs:

2.1 Functions in MATLAB


A function in MATLAB has the following parts:

Snippet 1: Usage of Addition Function

• The keywords, function and end, are used to specify starting and ending
of the function.
• name: Stores the return value.

• add nos: Name of the function.


• x, y: Arguments of the function.

2
2.2 ODE Solver
bvp4c: A MATLAB function used to solve 2 point BVPs. These are the major
types of BVPs which we have seen in the course and tutorials.
It has 3 arguments viz. ODE System to be solved (provided using a function),
Boundary Conditions and Initial Guess Value.
An example of a such kind of BVP: y ′′ + y ′ = y, y(0) = 0, y ′ (0) = 0 (1)

You might also like