CHE132B_HW3_Solutions

CHE132B_HW3_Solutions - the input flowrate that allows the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
ChE 132B Numerical Methods in Chemical Engineering Fall 2005 Homework Assignment: Modify the program so that instead of a fixed coefficient for the input flowrate (the “3”) it is actually a variable you can pass to the derivative function. The new file dydt.m: --------------------------------------------- function deriv=dydt(t, Q, A, C) deriv = C*(Q/A)*sin(t).^2-(Q/A); % The semicolon makes it invisible --------------------------------------------- The script file you call just needs to be changed so that it is given different values of C. Using a time step of 0.1 days, find the coefficient in
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: the input flowrate that allows the system to remain neutral (i.e., it doesn’t fill up or empty to infinity, but rather just oscillates between a minimum and a maximum). How tall of a tank do you need to order from a reputable vendor (in meters)? After playing with the coefficient C, you should find that at any value above 2.0 the tank fills up and at any value below it the tank empties. So, at 2.0 it will be steadily oscillating, with an amplitude of 0.33 meters. So the tank needs to be at least 0.33 meters tall. -0.25-0.2-0.15-0.1-0.05 0.05 0.1 0.15 0.2 2 4 6 8 10 12 14 16 18 20...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online