Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the above figure depicting a system comprising two tanks containing water. Each tank is leaking at a constant rate. Water is added at a

image text in transcribed

Consider the above figure depicting a system comprising two tanks containing water. Each tank is leaking at a constant rate. Water is added at a constant rate to the system through a hose, which at any point in time is filling either one tank or the other. It is assumed that the hose can switch between the tanks instantaneously. For {1,2}, let i denote the volume of water in Tank i and

i > 0 denote the constant flow of water out of Tank i. Let w denote the constant flow of water into the system. The objective is to keep the water volumes above 1 and $, respectively, assuming that the water volumes are above 1 and $ initially. This is to be achieved by a controller that switches the inflow to Tank 1 whenever 1() 1() and to Tank 2 whenever $()

$()

The hybrid automaton representing this two-tank system is given below figure

image text in transcribed

Construct a model of this hybrid automaton in Ptolemy II . Use the following parameter values: 1 = $ = 0, 1 = $ = 0.5, and = 0.75. Set the initial state to be (1; (0; 1)). (That is, initial value 1 is 0 and $ is 1.) Simulate your model for 100 seconds and plot how 1 and $ vary as a function of time t.

Please provide your model files, your Plot, and a document

x1(0)r1x2(0)r2x1(t)=wv1x2(t)=v2x1(0)r1x2(0)r2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions