Matlab programming for chemical engineering is important in designing equipment in process engineering. In chemical engineering, we have to solve differential equations to find relationships between different parameters such as pressure, temperature, velocity and etc.
Here we see matlab codes for first order and second order differential equations. Knowing basics for solving differential equation is a must for any chemical engineer.
These differential equations are used to solve problems of batch reactors, plug flow rectors (PFR) and continuous stirred reactors (CSTR).
In this tutorial, we will look how to code a matlab program properly to represent a behavior of a reactor. First, several basic codes are given to understand how to solve differential equations by matlab program.
Here, we are going to solve first order differential equation, dy/dt = t. Initial conditions are given as when t = 0, y = 10. Finally, y values against t values are graphed.
Here we define the differential equation.
Here, we are going to solve second order differential equation, [ dy/dt + y ]2 = 1
Questions asked by students. Ask your question and find the answer free.