Height of the tank variation by Integrating the mass Balance Equation
Objective: Simulate the height of the tank by integrating the mass balance equation for a period of 20 seconds. The valve opens to 100% at time=2.5 and shuts at time=13. Use a value of 1000 kg/m3 for density and 5.0 m2 for the cross-sectional area of the tank. For the valve, assume a valve coefficient of c=50.0…