Controlling Fluid Levels in a Tank
LegacyHow this worked in the previous version
When you need to handle a tank which has defined Upper Critical Level, Upper Level, Lower Level and Lower Critical Level. Once an upper/lower level (upper/lower) is triggered the supply/output pump slows/fastens according to the trigger. Once a critical level (upper/lower) is triggered the supply/output pump is turned off.

Where to Find the Model Object
Section titled “Where to Find the Model Object”The following model object can be found in the model objects directory:
- Misc - Controlling Fluid Levels in a Tank
Difficulty Level
Section titled “Difficulty Level”- Ease of Use: Moderate
- Ease of Modification: Moderate
How to Use the Model Object
Section titled “How to Use the Model Object”-
Open Your Model: Open your model or create a new blank model.
-
Insert the Model Object into Your Model
-
Locate the model object Controlling Fluid Levels in a Tank and select the insert button.
-
Move the cursor to the point of insertion and left mouse-click. The upper left corner of the **model object **will be inserted at the location of the mouse-click.
-
Connect to Your Model
-
Connect entity arrivals or a percentage route from your model to Pump1.

- **Connect **a percentage route from **Pump2 **to the rest of your model.
- Define Values: **Define **the values for scenario parameters s_Activity_Name1, s_Gal_Min_P1, s_Gal_Min_P2, s_Gal_Min_UL_P1, s_Gal_Min_UL_P2, s_LCL1, s_LL1, s_Meter_Checking_Interval1, s_Tank_Volume, s_UCL1, and **s_UL1 **based on the information provided under the heading Scenario Parameters below. The values for these Scenario Parameters must be provided before the simulation start.

- Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.
Controls Usage
Section titled “Controls Usage”Variables:
Section titled “Variables:”- v_Block_Size: Do not change. Is used to display meter status. Does not require any changing.
- v_Gal_Min_P1: Do not change. Is used for the speed of the pump, if you need to change the value, change it in the Action Logic of Pump Controller 1.
- v_Gal_Min_P2: Do not change. Is used for the speed of the pump, if you need to change the value, change it in the Action Logic of Pump Controller 1.
- v_Status_P1: Do not change. Is used to tell the model whether to turn the pump 1 on or off.
- v_Status_P2: Do not change. Is used to tell the model whether to turn the pump 2 on or off.
Scenario Parameters:
Section titled “Scenario Parameters:”- s_Activity_Name1: User input required. Is the name of the tank.
- s_Meter_Checking_Interval1: User input required. Is the time interval to check the level of the tank to display in the meter.
- s_Tank_Volume: User input required. Is the volume that the tank can contain.
- s_UL1: User input required. Is the upper limit.
- s_LL1: User input required. Is the lower limit.
- s_UCL1: User input required. Is the upper critical limit.
- s_LCL1: User input required. Is the lower critical limit.
- s_Gal_Min_P1 - 2: User input required. Is the gallon per minute value for pump 1 and pump 2.
- **s_Gal_Min_UL_P1 **- 2: User input required. Is the gallon per minute value for pump1 and pump2, when the upper or lower limit is reached.

