9860

Dynamic Behavior of Three Tanks in Series

Consider three identical tanks in a series subject to an input function . The heights of the liquid in the three tanks (i.e. , , ) obey the following equations:
,
,
,
where is the cross-sectional area of a tank and is related to the discharge coefficient for the exit pipes.
Suppose the height of tank 3 is sampled for a given input function to give the following data list: .
Then the constants and can be estimated using a least-squares optimization method. That is, we define the following objective function
.
Here is the height in tank 3 predicted by the model at time , and is the value of measured at time . The goal then is to determine and such that sum of squares is minimized for spanning the duration of the experiment.
One finds as shown in the second snapshot and . It is possible then to solve the governing equations shown above and determine the height of tanks 1 and 2. The second snapshot presents the height versus time for tanks 1, 2, and 3 in blue, magenta, and brown, respectively.
Once and have been determined, one can run simulations for various forms of the input function: impulse input, triangle input, square input, and staircase input. The subsequent snapshots show the responses for all the above mentioned special input functions, which are shown in red in a separate plot.

SNAPSHOTS

  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.









 
RELATED RESOURCES
Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2014 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+