Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

Draining Tank Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Stuber - 31 Jul 2008 17:38 GMT
Hi, i'm implementing a draining tank in simulink.  The
original height starts from a memory block and is
decremented each iteration by a constant flow loss (which
is previously fed into an integrator and the inverse of the
area of the tank).  The answer should be linear but i'm
recieving a nonlinear plot.  also, i'm using ode45.  does
anyone know where i'm going wrong?
Srikanth - 31 Jul 2008 18:12 GMT
I'm not sure what is the problem, if you could upload a jpg showing
your block diagram it might help. Here is how I would do it though -
I'd set the initial value of an integrator to the original height, set
a floor on the value possible to zero, and the input to the integrator
would be a constant negative number. Alternatively, you can just
generate a ramp and subtract it from the original height (you still
need the saturation effects though)
matt dash - 31 Jul 2008 19:08 GMT
"Joseph Stuber" <stuber_joseph@yahoo.com> wrote in message
<g6spp9$chr$1@fred.mathworks.com>...
> Hi, i'm implementing a draining tank in simulink.  The
> original height starts from a memory block and is
[quoted text clipped - 3 lines]
> recieving a nonlinear plot.  also, i'm using ode45.  does
> anyone know where i'm going wrong?

Maybe your tank is spherical.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.