Perform the first computation in Sec. 28.1, but for the casewhere
To calculate: The solution for c if thedifferential equation for mass balance of single reactor is
Answer to Problem 1P
Solution:
The solution for c by the Heun method where
Heun withoutiteration | |
t | c |
0 | 10 |
10 | 25 |
20 | 34.375 |
30 | 40.23438 |
40 | 43.89648 |
50 | 46.1853 |
The solution for c by fourth-order RK method where
4th order RK | |
t | c |
0 | 10 |
10 | 25.72917 |
20 | 35.27317 |
30 | 41.06419 |
40 | 44.57801 |
50 | 46.71009 |
Explanation of Solution
Given Information:
The differential equation for mass balance of single reactor is,
The values,
The analytical equation for mass balance of single reactor is,
Formula used:
The iteration formula for Heun’s method is,
The fourth-order RK method for
Where,
Calculation:
Consider the analytical equation for mass balance of single reactor is,
Substitute the values
Now, use VB code to determine c at different value of t using Heun’s method and RK4 method as below,
The following output gets displayed in the excel after the execution of the above code:
To draw the graph, use excel as below,
Step 1: Select cells from B5 to B10 and C5 to C10, then go to Insert tab and select the Line option from Charts subgroup.
Step 2: Select cells from B17 to B22 and C17 to C22, then go to Insert tab and select the Line option from Charts subgroup
Step 3: Merge the graphs.
The graph obtained is,
Hence, both the method gives the same results.
Want to see more full solutions like this?
Chapter 28 Solutions
Numerical Methods for Engineers
- Q-2) Find the solution for the LPP below by using the graphical method? Min Z=4x1+3x2 S.to: x1+2x2<6 2x1+x2<8 x127 x1,x2 ≥ 0 Is there an optimal solution and why if not can you extract it?arrow_forward3. Using the trial function uh(x) = a sin(x) and weighting function wh(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx - 2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx - 2 = 0 u(0) = 1 u(1) = 0arrow_forwardThe natural exponential function can be expressed by . Determine e2by calculating the sum of the series for:(a) n = 5, (b) n = 15, (c) n = 25For each part create a vector n in which the first element is 0, the incrementis 1, and the last term is 5, 15, or 25. Then use element-by-element calculations to create a vector in which the elements are . Finally, use the MATLAB built-in function sum to add the terms of the series. Compare thevalues obtained in parts (a), (b), and (c) with the value of e2calculated byMATLAB.arrow_forward
- 3. Using the trial function u¹(x) = a sin(x) and weighting function w¹(x) = b sin(x) find an approximate solution to the following boundary value problems by determining the value of coefficient a. For each one, also find the exact solution using Matlab and plot the exact and approximate solutions. (One point each for: (i) finding a, (ii) finding the exact solution, and (iii) plotting the solution) a. (U₁xx -2 = 0 u(0) = 0 u(1) = 0 b. Modify the trial function and find an approximation for the following boundary value problem. (Hint: you will need to add an extra term to the function to make it satisfy the boundary conditions.) (U₁xx-2 = 0 u(0) = 1 u(1) = 0arrow_forward2. Solve the following ODE in space using finite difference method based on central differences with error O(h). Use a five node grid. 4u" - 25u0 (0)=0 (1)=2 Solve analytically and compare the solution values at the nodes.arrow_forwardAs5arrow_forward
- x^2-5x^(1/3)+1=0 Has a root between 2 and 2.5 use bisection method to three iterations by hand.arrow_forward2. Let p 19. Then 2 is a primitive root. Use the Pohlig-Hellman method to compute L2(14).arrow_forwardlook at the graph wich presents F vs x graph ... Q : Determine the compression of the spring from the change in position of the cart+block in Graph ? please tell me the steps how can I find compression of the spring from the change in position of the cart+blockarrow_forward
- Find the optimum assignment for the distribution of tasks across the machines for the side cost matrixarrow_forwardQ1: The number of bacterial cells (P) in a given reactor is related to time in days (t) as described by the following mathematical model: dp dt 0.0000007 P², If at initial time (P = 106). Determine the number of cells when (t 2days) using the fourth order Runge-Kutta method and at time increment of (1 day). = = 0.3 P 1arrow_forwardPlease answer with The Network Simplex Methodarrow_forward
- Principles of Heat Transfer (Activate Learning wi...Mechanical EngineeringISBN:9781305387102Author:Kreith, Frank; Manglik, Raj M.Publisher:Cengage Learning