Explore BrainMass

Explore BrainMass

    Runge-Kutta Method

    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!

    Problem 1

    1. Write an Matlab m-file to solve this problem with Runge-Kutta method. Solve the concentration of T1 and T2 (or salt content) as function of time (up to 100 minutes). Both T1 and T2 are mixing tanks (assume immediate mixing). T1's capacity is 100 gallon and T2's capacity is 200 gallon. Initially, T1 contains full tank of salt solution which has 100 pounds of salt, T2 has full tank of pure water. When the input valve on T1 is turned on, the input flow rate (F1) is 10 gallon per minute with concentration of salt 0.6 pound per gallon flows into T1, and 15 gallons per minute (R1) of solution flows into T2, and 5 gallons per minute of solution flows from T2 to T1 (R2), and 20 gallons of solution (R3) flows out of T2. Also there is input (F2) flows into T2 at 10 gallons per minute. F2's concentration is 1 pound per gallon.

    © BrainMass Inc. brainmass.com March 5, 2021, 12:56 am ad1c9bdddf


    Solution Preview

    Dear student,

    This problem is about dynamic of amount of salt flowing through the solution in two compartment (two tank) system. This dynamic system can be solved by Runge-Kutta method using ode45 solver in MATLAB programing. The Matlab code is attached with this post. Doc file named "548485_Problem 1_Solutin_updated.docx" ...

    Solution Summary

    The Runge-Kutta method is solved using Matlab m-files. F2 concentrations for one pound per gallons are given.