Question: what would be a good python code for it ? Develop a generic python code to determine the dynamic heights ( h _ {

what would be a good python code for it? Develop a generic python code to determine the dynamic heights \( h_{1}(t)\) and \( h_{2}(t)\) of two connected tanks as a function of time. The first tank has a time varying input \( Q(t)\) entering the tank and a pipe of length \( l_{1}\) and cross-sectional area \( s_{1}\) at a height \( H \) that connects it with tank 2. The liquid in tank 2 drains via gravity through another pipe with length \( l_{2}\) and cross-sectional area \( s_{2}\).
Prove that your code works as intended by choosing a set of realistic values (initial heights, pipe lengths and sizes, tank dimensions, time-varying flow input, etc...) and plot the height of each tank as a function of time. You are expected to modify the base problem to make it more interesting AND/OR do a sensitivity analysis on one of the variables to see how this affects the results. Your project will be judged using the following criteria: model, narrative/discussion, reader's interest, depth, and originality of study. Note that "reader interest" does not mean you should fabricate a creative story, it means that it is written in a professional manner that easy and interesting to read. Interesting because of the material and original study you've generated, which should be unique to you and you alone. Also note that this problem can be made quite simple or extremely complicated. You should do your best to add enough complexity to the problem that you are able to solve it in the allotted time. It is recommended that you start simple and incrementally add more details. For example, you could explore the effect of a unique time-varying function \( Q(t)\), or look at the effect of friction on the bridging pipe, or the effect what happens when the liquid level dips below the bridging pipe. There are many, many interesting things you could explore. I would recommend you focus on one or two of these aspects and learn what you can above the base case. What to turn in:
- Your python file for a fully functioning 2-tank system.
- A 2 page technical memo. At the minimum include the problem, your model/assumptions, the code, the transient behavior, and your model's limitations.
what would be a good python code for it ? Develop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!