XPSWMM to TUFLOW-SWMM: Difference between revisions

Content deleted Content added
Line 491:
 
The linking of the 1D SWMM and the 2D TUFLOW model is done within the TUFLOW control files. These files are required for running TUFLOW-SWMM. The steps below outline the basic commands required to complete the linking and run the model. Based on the modelling task, further commands may need to be added or removed.
 
As XPSWMM writes TUFLOW model files, in the u>[[#Convert_XPSWMM_Model_to_Recommended_TUFLOW_Structure | Convert XPSWMM Model to Recommended TUFLOW Structure]]</u> section, the TUFLOW control files created by XPSWMM were transferred into their respective places in the '''TUFLOW''' folder. The TBC and TGC files were transferred to the '''TUFLOW\model''' folder, and the TCF file was transferred to the '''TUFLOW\model\runs''' folder.
 
The following steps will require use of a text editor. The tutorial demonstration uses Notepad++. For its configuration information refer to <u>[[NotepadPlusPlus_Tips | Notepad++ Tips]]</u>. <br>
 
'''Note:''' For a clean and organized model, it is recommended to name all the TUFLOW control files similarly. For example, '''1D2D_Urban_001.tscf''', '''1D2D_Urban_001.tbc''', '''1D2D_Urban_001.tgc''' and '''1D2D_Urban_5m_001.tcf'''.
 
<li>Create== TUFLOW SWMM Control File (TSCF): ==
The linking is specified in the TUFLOW control files. Further commands can be added in or removed based on the modeling task.
The TUFLOW SWMM Control File (TSCF) is used to control the SWMM input data flow. All 1D SWMM files and commands are referenced in the TUFLOW SWMM Control File.<br>
<ol>
<li> In Windows File Explorer, navigate to the '''TUFLOW\model''' folder and create a new blank text file with the extension .tscf.
<li>Create TUFLOW SWMM Control File (TSCF):
<li> Open the TSCF into a Text Editor (Notepad++ is recommended) and add the following commands. These filenames are examples, reference your model SWMM INP files.<br>
<ol><font color="blue"><tt>Read SWMM </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\swmm\original_model.inp </tt></font></ol>
<ol><font color="blue"><tt>Read SWMM </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\swmm\inlet_definition.inp1D2D_Urban_HDR_001.inp </tt></font></olbr>
<ol><font color="blue"><tt>Read SWMM </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\swmm\subcatchments1D2D_Urban_RNF_001.inp </tt></font></olbr>
<ol><font color="blue"><tt>Read SWMM Inlet Usage</tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt>..\swmm\inlet_usage_informationswmm_iu_XP_001.gpkg </tt></font></ol>
<br><br>
 
'''<<Video>>'''<br>
<br>
</ol>
 
== TUFLOW Boundary Control File (TBC) ==
The TUFLOW Boundary Control File (TBC) contains information regarding the location of boundary conditions and internal links within the model. As XPSWMM writes TUFLOW model files, a TBC file was transferred to the '''TUFLOW\model''' folder in the <u>[[#Convert_XPSWMM_Model_to_Recommended_TUFLOW_Structure | Convert XPSWMM Model to Recommended TUFLOW Structure]]</u> section.
<ol>
<li> In Windows File Explorer, navigate to the '''TUFLOW\model''' folder and open the TBC into a text editor (Notepad++ is recommended).
<li>
 
 
 
<li>Update TUFLOW Boundary Control file (TBC):