Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.16 Write a MATLAB program that computes the solution to the (dimensionless) unsteady diffusion equation ac a2c ar ax2 subject to an initial condition c(x,0)

image text in transcribed

7.16 Write a MATLAB program that computes the solution to the (dimensionless) unsteady diffusion equation ac a2c ar ax2 subject to an initial condition c(x,0) 0 and the boundary conditions c(0,t)-1 and ac/ax = 0 at x = 1 . In other words, this is the solution for the concentration (or temper- ature profile) in an initially empty (cold) slab if we instantaneously put it in contact with a reservoir at the left that is at the maximum concentration (temperature). Use centered finite differences for the spatial derivative and RK4 for the time integration. You should have 51 nodes and a time step of 0.0001. Make a plot that has the concentration profile at the l l dimensionless times t = 0, 0.025, 0.05, . . . ,025. 7.16 Write a MATLAB program that computes the solution to the (dimensionless) unsteady diffusion equation ac a2c ar ax2 subject to an initial condition c(x,0) 0 and the boundary conditions c(0,t)-1 and ac/ax = 0 at x = 1 . In other words, this is the solution for the concentration (or temper- ature profile) in an initially empty (cold) slab if we instantaneously put it in contact with a reservoir at the left that is at the maximum concentration (temperature). Use centered finite differences for the spatial derivative and RK4 for the time integration. You should have 51 nodes and a time step of 0.0001. Make a plot that has the concentration profile at the l l dimensionless times t = 0, 0.025, 0.05, . . . ,025

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions