Question: Develop a Matlab function myBCE 9 that applies the boundary conditions of to the dependent variable T . Function Inputs: t: scalar value of time

Develop a Matlab function myBCE9 that applies the boundary conditions of to the dependent variable T.
Function Inputs:
t: scalar value of time (t)
T: column vector of temperature values T(vector) at all M +1 mesh points at time t
Function Outputs:
T: column vector of temperature T(vector) at all M +1 mesh points at time with the boundary conditions applied
Use global variable
dx: grid spacing x
Provided left and right functions:
On the left, the fluid has a temperature gradient of:
T(x=0,t)=5-4* sin(((20* pi)/11)* t)
On the right, the fluid leaving has a temperature gradient of:
dT/dx(x=L,t)=-2-3* sin(((4* pi)/5)* t)
At t=0, the temp of the fluid in the pipe is:
T(x,t=0)=5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!