Explore BrainMass

Explore BrainMass

    MATLAB: Implicit FTCS and Crank-Nicolson Scheme

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Write a program that solves the diffusion equation using the implicit FTCS scheme with parameters of N=61 and tau=1*10^-4,1.5*10^-4. Repeat the first part using the crank-nicolson scheme. Make a 'method' menu to run either of these scheme. Must be written in matlab.

    Attached is the explicit FTCS for diffusion.

    © BrainMass Inc. brainmass.com December 15, 2022, 7:42 pm ad1c9bdddf


    Solution Preview

    The attached Matlab script executes the requested task.

    It has some comments on various ...

    Solution Summary

    This solution provides a MATLAB program to solve the diffusion equation.