Package: Numerical Methods For Engineers With 2 Semester Connect Access Card
Package: Numerical Methods For Engineers With 2 Semester Connect Access Card
7th Edition
ISBN: 9781259279911
Author: Steven Chapra
Publisher: McGraw-Hill Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 32, Problem 1P

Perform the same computation as in Sec. 32.1, but use Δ x = 1.25 .

Expert Solution & Answer
Check Mark
To determine

To calculate: The concentration of the distributed-parameter system equations for Δx=1.25. (Refer Sec. 32.1)

Answer to Problem 1P

Solution: The concentration of equations for Δx=1.25 is shown below.

Package: Numerical Methods For Engineers With 2 Semester Connect Access Card, Chapter 32, Problem 1P , additional homework tip  1

Explanation of Solution

Given Information:

The distributed-parameter system depicts chemical modelling being subjected to first order decay and the tank is mixed well vertically and laterally.

Apply finite length of segment, Δx. So, the equation formed is of the form,

VΔcΔt=Qc(x)Q[ c(x)+c(x)xΔx ]DAcc(x)x+DAc[ c(x)x+xc(x)xΔx ]kVc

Here, V

is the volume, Q

is the flow rate, c

is the concentration, D

is the dispersion coefficient, Ac

is the tank’s cross-sectional area, and k

is the first order decay coefficient.

Calculation:

Qcin=Qc0DAcc0x …… (1)

Substitute centred finite differences for the first and the second derivatives in equation (1) to develop steady-state solution,

Dci+12ci+ci1Δx2Uci+1`ci12Δxkci=0

Further simplify the equation,

(2DUΔx+kΔxU+2+ΔxUD)c0(DUΔx)c1=(2+ΔxUD)cin …… (2)

And,

(DUΔx+12)ci1+(2DUΔx+kΔxU)ci(DUΔx12)ci+1=0 …… (3)

Also,

(DUΔx)cn1+(2DUΔx+kΔxU)cn=0 …… (4)

Solve the equation (2),

(2DUΔx+kΔxU+2+ΔxUD)c0(DUΔx)c1=(2+ΔxUD)cin

Substitute D=2, U=1, cin=100, Δx=1.25, and k=0.2,

(2×21×1.25+0.2×1.251+2+1.25×12)c0(21×1.25)c1=(2+1.25×12)100(3.2+0.25+2+0.625)c0(1.6)c1=(2+0.625)1006.075c01.6c1=262.5

Hence, the required first equation is 6.075c01.6c1=262.5.

Solve the equation (3),

(DUΔx+12)ci1+(2DUΔx+kΔxU)c0(DUΔx12)ci+1=0

Substitute D=2, U=1, cin=100, Δx=1.25, and k=0.2,

(21×1.25+12)ci1+(2×21×1.25+0.2×1.251)c0(21×1.2512)ci+1=0(2.1)ci1+(3.45)c0(1.1)ci+1=0

Hence, the required middle equation is (2.1)ci1+(3.45)c0(1.1)ci+1=0.

Substitute i=1

in middle equation,

(2.1)ci1+(3.45)c0(1.1)ci+1=0(2.1)c11+(3.45)c1(1.1)c1+1=02.1c0+3.45c11.1c2=0

Substitute i=2 in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c21+(3.45)c2(1.1)c2+1=02.1c1+3.45c21.1c3=0

Substitute i=3 in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c31+(3.45)c3(1.1)c3+1=02.1c2+3.45c31.1c4=0

Substitute i=4 in middle equation,

(2.1)c41+(3.45)ci(1.1)c4+1=0(2.1)c41+(3.45)c4(1.1)c4+1=02.1c3+3.45c41.1c5=0

Substitute i=5

in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c51+(3.45)c5(1.1)c5+1=02.1c4+3.45c51.1c6=0

Substitute i=6

in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c61+(3.45)c6(1.1)c6+1=02.1c5+3.45c61.1c7=0

Substitute i=7

in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c71+(3.45)c7(1.1)c7+1=02.1c6+3.45c71.1c8=0

Substitute i=8

in middle equation,

(2.1)ci1+(3.45)ci(1.1)ci+1=0(2.1)c81+(3.45)c8(1.1)c8+1=02.1c7+3.45c81.1c9=0

Solve equation (4) for last equation,

(DUΔx)cn1+(2DUΔx+kΔxU)cn=0

Substitute D=2, U=1, cin=100, Δx=1.25, and k=0.2,

(21×1.25)c91+(2×21×1.25+0.2×1.251)c9=01.6c8+3.45c9=0

Hence, the required last equation is 1.6c8+3.45c9=0

Write all the equations in matrix form,

[ 6.075c01.6c12.1c0+3.45c11.1c22.1c1+3.45c21.1c32.1c2+3.45c31.1c42.1c3+3.45c41.1c52.1c4+3.45c51.1c62.1c5+3.45c61.1c72.1c6+3.45c71.1c82.1c7+3.45c81.1c91.6c8+3.45c9]=[ 262.5000000000 ]

Express the matrix in tri-diagonal form,

[ 6.0751.6000000002.13.451.1000000002.13.451.1000000002.13.451.1000000002.13.451.1000000002.13.451.1000000002.13.451.1000000002.13.451.1000000002.13.451.1000000001.63.45 ][ c0c1c2c3c4c5c6c7c8c9 ]=[ 262.5000000000 ]

Use MATLAB to solve the above matrix.

% declare the matrix size

A = zeros(10,10);

% define the values of matrix A

A(1,1) = 6.075;

A(1,2) = -3.2;

A(2,1) = -2.1;

A(2,2) = 3.45;

A(2,3) = -1.1;

A(3,2) = -2.1;

A(3,3) = 3.45;

A(3,4) = -1.1;

A(4,3) = -2.1;

A(4,4) = 3.45;

A(4,5) = -1.1;

A(5,4) = -2.1;

A(5,5) = 3.45;

A(5,6) = -1.1;

A(6,5) = -2.1;

A(6,6) = 3.45;

A(6,7) = -1.1;

A(7,6) = -2.1;

A(7,7) = 3.45;

A(7,8) = -1.1;

A(8,7) = -2.1;

A(8,8) = 3.45;

A(8,9) = -1.1;

A(9,8) = -2.1;

A(9,9) = 3.45;

A(9,10) = -1.1;

A(10,9) = -3.2;

A(10,10) = 3.45;

% define the matrix b

b = [262.5;0;0;0;0;0;0;0;0;0];

% solve the inverse of matrix

Sol = A\b

The output of the program is given below.

Package: Numerical Methods For Engineers With 2 Semester Connect Access Card, Chapter 32, Problem 1P , additional homework tip  2

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Knowledge Booster
Background pattern image
Advanced Math
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Text book image
Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Use of ALGEBRA in REAL LIFE; Author: Fast and Easy Maths !;https://www.youtube.com/watch?v=9_PbWFpvkDc;License: Standard YouTube License, CC-BY
Compound Interest Formula Explained, Investment, Monthly & Continuously, Word Problems, Algebra; Author: The Organic Chemistry Tutor;https://www.youtube.com/watch?v=P182Abv3fOk;License: Standard YouTube License, CC-BY
Applications of Algebra (Digit, Age, Work, Clock, Mixture and Rate Problems); Author: EngineerProf PH;https://www.youtube.com/watch?v=Y8aJ_wYCS2g;License: Standard YouTube License, CC-BY