Jump to content
TUFLOW Forum
Robin.Green

Operational Pump

Recommended Posts

Hi there - I'm after some advice in relation to an operation pump I have within my model. The pump is controlled by the upstream water level, and I have a working definition as follows:

Define Pump Control == Pump_House

!---------------deafult Setting ------------
Pump operation == off
Pump Capacity == 0.591 ! capacity in cums
Pump period (min) == 1 ! time to start
Pump number == 2 ! No of pumps

!Set user variable
Water_Level == H1D BD2.2

! Logic
if Water_Level > 0.5 ! triger level to start pump
    Pump operation == on
else if Water_Level < 0.1 ! triger level to stop pump    
    Pump operation == off
else
    Pump operation == no change
end if

End Define

 

In reality the pump needs to start at a water level of -1.3 and stop at -2.0. When I set the variables to these values I am presented with the following error, as if TUFLOW cannot recognize a negative value?:

“NoXY: ERROR 1513 - Input variable in line below has not previously been defined.  Operating Control Line = if Water_Level > -1.3; Operating Control Input Variable =  http://wiki.tuflow.com/index.php?title=TUFLOW_Message_1513

Has anyone else encountered such an issue, or does anyone know a solution?

Many thanks for your help.

Robin

 

Share this post


Link to post
Share on other sites

Problem Solved.

I found a simple solution which just required removing the water levels from the logic. Instead they are specified separately as variables, as shown below:

 

Define Pump Control == Pump_House

!---------------deafult Setting ------------
Pump operation == off
Pump Capacity == 0.591 ! capacity in cums
Pump period (min) == 1 ! time to start
Pump number == 2 ! No of pumps

!Set user variable
Water_Level == H1D BD2.2

Upper == -1.3
Lower == -2.0

! Logic
if Water_Level >
Upper ! trigger level to start pump
    Pump operation == on
else if Water_Level <
Lower ! trigger level to stop pump    
    Pump operation == off
else
    Pump operation == no change
end if

End Define
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...