When Will You Need This?

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.

Controlling Fluid Levels in a Tank model image

Model Object

The following model object can be found in the model objects directory: Misc \ Controlling Fluid Levels in a Tank.

Ease of Use: Moderate

Ease of Modification: Moderate

How to Use the Model Object

1. Open Your Model

Open your model or create a new blank model.

2. Insert the Model Object into Your Model

1. Locate the model object Controlling Fluid Levels in a Tank and select the insert button.

2. 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.

3. Connect to Your Model

1. Connect entity arrivals or a percentage route from your model to Pump1.

from your model to Controlling Fluid Levels in a Tank

2. Connect a percentage route from Pump2 to the rest of your model.

from Controlling Fluid Levels in a Tank to your model

4. Define Values

1. 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.

set scenario parameter values in Controlling Fluid Levels in a Tank

5. Completion

The model object is now integrated into your model, you should now be able to save and then simulate the model.

Attributes, Variables, Scenario Parameters and Scenarios Usage

Variables:

1. v_Block_Size: Do not change. Is used to display meter status. Does not require any changing.

2. 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.

3. 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.

4. v_Status_P1: Do not change. Is used to tell the model whether to turn the pump 1 on or off.

5. v_Status_P2: Do not change. Is used to tell the model whether to turn the pump 2 on or off.

Scenario Parameters:

1. s_Activity_Name1: User input required. Is the name of the tank.

2. s_Meter_Checking_Interval1: User input required. Is the time interval to check the level of the tank to display in the meter.

3. s_Tank_Volume: User input required. Is the volume that the tank can contain.

4. s_UL1: User input required. Is the upper limit.

5. s_LL1: User input required. Is the lower limit.

6. s_UCL1: User input required. Is the upper critical limit.

7. s_LCL1: User input required. Is the lower critical limit.

8. s_Gal_Min_P1 – 2: User input required.  Is the gallon per minute value for pump 1 and pump 2.

9. 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.