Simulink block diagram in the main body of the report

Assignment Help MATLAB Programming
Reference no: EM133111060

MATLAB and Numerical methods

Problem: The formation of biodiesel through the methanolysis of triglycerides is of great interest due to its ability to produce renewable, environmentally friendly fuel from potentially waste materials. As a significant amount of research continues in the field, a vast literature is available concerning the kinetics of the process under different conditions and using different raw materials. A basic kinetic scheme isl,

MeOH +TG → BD + DG , k1 = 0.4526 m3. kmo1-1. day-1

MeOH +DG → BD + MG, k2= 0.3958 m3. kmol-1. day-1

Me0H + MG → BD +GL, k3 = 0.3523 m3. kmol-1.day-1

In this reaction scheme, the reactant species methanol (MeOH) and triglyceride (TG) react to form biodiesel (BD) and glycerol (GL), along with diglyceride (DG) and monoglyceride (MG), which appear as intermediates.

If the reactions take place in a batch chemical reactor, assumed to operate isothermally, then the set of differential equations that describe the change in concentration of each of the chemical species is given by,

2213_Numerical methods.jpg

 

The respective reaction rates being:

r1= k1[Me0H][TG]; r2= k2 [MeOH] [DO; r3=k3[MeOH][MG].

If the initial concentrations of the reactant species are

[Me0H]=3kmol . m-3 and [TG]=1kmoi.m-3 (and the initial concentration of all other species is zero)

Objective: Your task is to solve this system of differential equations by hand using the Euler's method and in using both Simulink and MATLAB.

(a) Solve the first 2 time points, given a step size of 0.1, for each of the differential equations using the Euler's method calculation that you were shown you how to do by hand in Semester 1. These will need to be solved sequentially in the order presented in the table below (i.e. You will first need to solve [MeOH] @ t=0.1 and then go on to solve of [TG] @ t=0.1 etc.. Once you have completed this task you
should be able to complete the first 2 empty rows of the table below.

(b) Performing the hand calculations in part (a) should've demonstrated to you that for a complex linked system of differentials it quickly becomes inefficient to perform hand calculations. Develop a Simulink model to simulate the system of equations and plot the concentration of each species over time. You should use a Fixed-step Solver: odel (Euler); with a Fixed-step size 0.1.

(c) The final task is to write the MATLAB code to solve this problem using the odes45 function. This will require you to generate a script file and a function file containing the system of ODEs to pass to the ode45 function in you script (similar to the example in slide pack 5).

The required work, structure of the report and marking criteria are as follows,

Question 1. Provide Euler's hand calculations (typed) for the first 2 rows of the table. Any 2 example calculations will be sufficient to include in the report alongside the completed tables and will ensure unique reports.

Question 2. Use Simulink to solve the ODEs. Include the Simulink block diagram (signals labelled) in the main body of the report along with the output plot of the 6 species. Provide the 1st 10 and last 10 rows of the matrix of concentrations in a table.

Question 3. Develop the code to solve to problem an provide the annotated (commented) script and function file that you developed in the main body of the report along with the output plot of the 6 species. Provide the 1st 10 and last 10 rows of the matrix of concentrations in a table from the variable step size solver ode45.

Question 4. Provide 3 bullet points on your learning outcomes from this report. Marks will also be awarded in this section for presentation and layout of the report to a professional standard and ability to follow instructions.

Reference no: EM133111060

Questions Cloud

Estimate of the current value of fintech : The current risk-free rate is 2% and the expected market risk premium is 6%. All firms pay a 25% tax rate.
What is the expected runoff and infiltration depths : What is the expected runoff and infiltration depths for the same 2 yr 24 hr rain event - The proposal is to convert this forest to a commercial development
Sales cycle might be managed strategically : Give an overview of how Sales Cycle might be managed strategically? Explain how the company above is structured (organisation) to support its sales activities
Space and gross rents for the building : A potential of?ce building development costs $110 per square foot to construct. excluding land costs. The developer now holds an option to purchase the land for
Simulink block diagram in the main body of the report : Example calculations will be sufficient to include in the report alongside the completed tables and will ensure unique reports
Explain the alternative equity portfolio : You are managing an alternative equity portfolio that uses leverage in a quest for market-beating returns. Your fund invests in a single stock. (So, not just al
Characteristics distinguishing services from goods : There are six unique characteristics distinguishing services from goods. These characteristics are intangibility, inseparability, perishability, client relation
Calculate the rate of return : Answer to the nearest cent and do not include the $ sign. For example, if the price is $100.25, you should enter 100.25 as the answer.
Calculate total profit and loss per share : You buy XYZ put options with exercise price $42 for a premium of $3.28. At expiration, XYZ is trading for $30.95 per share.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd