Robin.Green 0 Report post Posted June 13, 2016 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 Quote Share this post Link to post Share on other sites
Robin.Green 0 Report post Posted June 14, 2016 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.2Upper == -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 Quote Share this post Link to post Share on other sites
peteraylett 0 Report post Posted June 15, 2016 Very nice. Thanks for letting us know! Quote Share this post Link to post Share on other sites
rachel.jensen 0 Report post Posted June 16, 2016 Nice work around Robin! and thanks for updating the question We've noted down the trouble you had so that the issue can be fixed in future builds Quote Share this post Link to post Share on other sites
TeeganB 0 Report post Posted February 2, 2017 Hi All, A fix for the above issue has been included in the latest TUFLOW update (Build 2016-03-AE). Please see Item 167 of the release notes. Cheers, Teegan Quote Share this post Link to post Share on other sites