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 myBCE 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 Tvector at all M mesh points at time t
Function Outputs:
T: column vector of temperature Tvector at all M 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:
Txt sin pi t
On the right, the fluid leaving has a temperature gradient of:
dTdxxLt sin pi t
At t the temp of the fluid in the pipe is:
Txt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
