Search the Community
Showing results for tags 'IWL'.
Found 3 results
Hi Tuflow I have a Stormtide Inundation Model with no upstream inflows and a downstream boundary which applies a temporally varying water level using a 2d_bc polyline (HX type - linearly varying) + 1d_bc Nodes + 1d_Nwk_Nodes. There are three subtly different water level timeseries which are applied across the HX line (along the shoreline of a coastal estuary) I wish to set an initial water level (IWL) based on only ONE of the time series (contained within a .csv file) which are referenced from the bc_dbase. I note the current version of TUFLOW allows the user to use an automatic method for setting IWL which works really well if you only have one downstream timeseries. i.e. Set IWL == AUTO I was wondering, is there some way I can set one of my timeseries as a variable using the "Set Variable" command and then reference this to set the IWL? I could imagine the syntax might look something like below - where WL1 is the timeseries I wish to apply as my IWL Set Variable WL1 == ..\..\Storm_Tide.csv | WL1 Set IWL == WL1 Tuflow would then apply WL1 the same way as the AUTO option. Can I already do something like this? Would save me Lots of time when I have MANY scenarios!!!!!!!
Q: I would like to vary the magnitude and duration of events using variables so that I don't have to create separate tcf files. What is the appropriate use of 'BC Event Source ==' and can I specify a unique initial water level for each discharge? A: The “BC Event Source == “ command sets up a wildcard in the bc_dbase and replaces this wildcard with a second argument wherever it is found. In the following case: BC Event Source == _ari_ | 550 This is looking for a wildcard “_ari_” in the boundary database and where this is found this will be replaced by “550”. The wildcard you set is entirely up to you, but do make it something that doesn’t exist anywhere else in the boundary database. For example if you were to use “BC Event Source == a | 550”, it is likely that another “a” occurs somewhere in the boundary database! In the example above _ari_ was used to denote the Average Recurrence Interval. In the example below two wildcards are used: BC Event Source == _durn_ | 010min BC Event Source == _ari_ | 010yr This allows the event magnitude denoted by the average recurrence interval (wildcard = _ari_) and the event duration (wildcard = _durn_), to be varied independently. In this case we can run any combination of durations and return periods. In the bc_dbase, for boundary name “Local” the source is listed and includes both the _ari_ and _durn_ wildcards. For example when we run the 010min event for the 010yr event the source filename will become “rafts\Local_Flows_010yr010min.loc.ts1” Name Source Local rafts\Local_Flows__ari__durn_.loc.ts1 Note the wildcard can occur in either the filename or the header columns. The following are all possible: Name Source Column 1 Column 2 Inflow1 Inflows__ari_.csv Time Flow Inflow2 Inflows.csv Time _ari__durn_ Inflow3 _wildcard_ For inflow 1, the wildcard is part of the filename and could be replaced by for example 550cms and TUFLOW would look for a file called Inflows_550cms.csv and extract the data from columns “Time” and “Flow”. For Inflow2, this wildcard is in the header, for a flow boundary, this is the column to extract the flow data from. TUFLOW will open Inflows.csv and would extract the data from columns “Time” and “550cms” (if the event source was set to 550cms). This would allow all boundaries to be stored in the same file and use the same Time data. For Inflow3, a constant value is being specified. In this case the wildcard replacement would need to be a value “BC Event Source == _wildcard_ | 550”. If this was “550cms” this would cause an error about being unable to convert to a real number. This does not allow for a ramping up of the inflow and may cause stability issues. For the Initial water level, this can be set with the “SET IWL == “ command. For example: Define Event == 550cms BC Event Source == _flow_ | 550cms Set IWL == 149.9 End Define Define Event == 750cms BC Event Source == _flow_ | 750cms Set IWL == 149.9 End Define And finally, in the filenames you can use ~e1~, for the output and log files this will be replaced by the event. If you were to change the filename of your control file to TUFLOW_EXAMPLE_~e1~.tcf, When you run the outputs would become TUFLOW_EXAMPLE_550cms, TUFLOW_EXAMPLE_750cms… etc. As events and scenarios are also automatically classed as variables, wildcards can similarly be used in filepaths within your control files, using the following syntax for example: Output Folder == C:\TUFLOW\Results\<<ari>>\<<durn>>
Q: I am reading an initial water level into the model to fill the depressions. I am adding the following to my .tcf file: Read Grid IWL == ..\model\grid\pit_filled_dem.flt However i can an error to say that the command is ambiguous. A: If using a Read Grid IWL, this needs to be read into the geometry control file (.tgc) and not the .tcf. If you move the command to the .tgc this should resolve the issue. Please note that any other IWL commands (such as Set IWL) should also be moved to the .tgc file, otherwise these will overwrite the values in the grid.