Assignment 2 No Solution
Assignment 2 No Solution
Instructions
• Submit your OWN work and DO NOT copy from each other. To know about plagiarism, please check
the course website. Use of unfair means will be reported and will result in a FAIL grade.
• Use Mathematica software to solve all the problems.
• Codes/scripts that do not compile/run/execute will NOT be given partial credits.
• The codes that are incomplete will NOT be considered for evaluation and therefore, no partial points
shall be awarded.
• Assignments submitted after the due date will NOT be evaluated.
• You might be asked by the instructor to demonstrate (in-person) your capability of using Mathematica
software. In case, you are not able to demonstrate your capability, ZERO marks shall be awarded in
the assignment.
• Adherence to the guidelines given in the Submissions section is must. Non-compliance might result
in assignments not getting evaluated.
• Pay special attention to Deductions section.
Submissions
• All the files must be uploaded using the Google Form; submission of assignment in any other form will
not be accepted under any circumstances.
• The submission must consist of TWO files:
1. assignment2 12345678 main.pdf containing the question-wise compilation of ALL the results
for each problem. Any extra work/calculation that has been done should also be included in this
file.
2. assignment2 12345678 mathematica.zip containing ALL the Mathematica notebooks.
Note that the .zip files can be created using WinZip or pkzip utility and that 12345678 in the names
of the files represents the Roll Number of the student.
• The .nb (written in Mathematica) files must be executable and it must generate the results for the
corresponding problem upon execution.
• Please read the general instructions for Assignments on the Course Website.
Deductions
• Notebook not commented.–5pts.
• Notebook not formatted.–5pts.
• Use of non-standard functions, extra functions etc.–2pts per function.
• Unnecessary code outputs, including those resulting from the absence of semicolon, that have not been
asked for.–2pts per line of output.
• Graphs not labelled and axes not marked.–2pts per plot.
• Any legend, axes labels that are not legible. –2pts per plot.
• Instructions not followed.–5pts.
Questions
1. Write a Mathematica notebook named P1 12345678.nb to derive the transfer function H(s)/Q(s)for (6)
the liquid-level system shown in Fig. 1 when
(a) The tank level operates about the steady-state value of hs = 1ft.
(b) The tank level operates about the steady-state value of hs = 3ft
Fig. 1: Liquid-level system.
The pump removes water at a constant rate of 10 cfm (cubic feet per minute); this rate is independent
of head. The cross-sectional area of the tank is 1.0 ft2 , and the resistance R is 0.5 ft/cfm. Also, generate
the plot of the responses for each case, h(t) for a step change in q.
2. Write a Mathematica notebook named P2 12345678.nb to derive the transfer function Y (s)/X(s) for (6)
the block diagrams shown in Fig. 2. Express the results in terms of Ga , Gb , and Gc .
3. The two tanks shown in Fig. 3 are connected in an interacting fashion. The system is initially at steady
state with q = 10 cfm. The following data apply to the tanks: A1 = 1 ft2 , A2 = 1.25 ft2 , R1 = 1 ft/cfm,
and R2 = 0.8 ft/cfm. Write a Mathematica notebook named P3 12345678.nb to answer the following:
(a) If the flow changes from 10 to 11 cfm according to a step change, determine H2 (s), i.e., the Laplace (2)
transform of H2 (t), where H2 is the deviation in h2 .
(b) Determine H2(1), H2(4), and H2(∞). (1)
(c) Determine the initial levels (actual levels) h1 (0) and h2 (0) in the tanks. (2)
(d) Obtain an expression for H1 (s) for the unit-step change described above. (3)
2
(e) Plot the response H1 (s) and H2 (s) for the unit step change in input. (2)
4. For the control system shown in Fig. 4, write a Mathematica notebook named P4 12345678.nb to find (8)
the value of Kc for which the system is on the verge of instability. The controller is replaced by a P D
controller, for which the transfer function is Kc (τD s + 1). If Kc = 10, determine the range of τD for
which the system is stable.