Write a MATLAB code to solve the given boundary value problem numerically using an explicit finite difference method

engineering

Description

Write a MATLAB code to solve the given boundary value problem numerically using an explicit finite difference method. Plot solutions at t = 0.25, 0.5, 0.75 and 1 s.

Use first-order central differencing for the derivative boundary conditions.

Note: Create grid, axis labels and legend for the graphs.

1-MATLAB CODE 


1-GRAPHICAL OUTPUT


Repeat Question-1 with , 0.6 and 0.8; as well. Show only the graphical outputs for each case separately below; and looking at the graphics, make a  very short visual comment about how any change in D affect the solution (For example; the curves get apart from each other, the curves get more concave, shape of the curves gets more blunt, etc…).


2- GRAPHICAL OUTPUT ()


2- GRAPHICAL OUTPUT ()


2- GRAPHICAL OUTPUT ()


2- COMMENT:


Instruction Files

Related Questions in engineering category