From: Scott on 9 Aug 2010 03:28 Hi all, I have a question regarding a two-tank system. Basically there is an inflow into tank 1 that then flows into tank 2 and finally there's an outflow. The equation describing tank 1 is: A1dH1/dt = Qv1 - Qv2 and tank 2 is: A2dH2/dt = Qv2 - Qv3 where A1 and A2 = 0.01m^2 Also, Qv2 = Cd2a2*sqrt[2g (H1 - H2)] and Qv3 = Cd3a3*sqrt[2g (H2 - H3)] where: a2 = 0.00003m^2 a3 = 0.000025m^2 Cd2 = 0.75 Cd3 = 0.5 g = 9.81 m/s^2 H3 = 0.02m At t=0, Qv1 is applied (Qv1 can be any random value chosen). I need to use simulink to develop a model of the system for the initial conditions: 1. Both tanks are initially empty; 2. Both tanks are initially filled to 0.02m 3. Both tanks are initially filled to H1 = 0.5m Using the data given I have come to the result that the final set of ODE's are: dH1/dt = [Qv1 - 2.25E-5*sqrt(19.62*(H1-H2))]/0.01 dH2/dt = [(2.25E-5*sqrt(19.62*(H1-H2)))-(1.25E-5*sqrt(19.62*(H2-0.02)))]/0.01 However how to model these in Simulink is beyond me... Any help is much appreciated.
|
Pages: 1 Prev: Start m-file when new csv-Data available Next: 2D Gaussian Multipeak Fitting |