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.