Difference between revisions of "XPSWMM Conversion TUFLOW Control File Formatting"

From Tuflow
Jump to navigation Jump to search
Line 1: Line 1:
 
== Format TUFLOW Control Files (Optional) ==
 
== Format TUFLOW Control Files (Optional) ==
In the previous sections, we removed unnecessary commands from the TUFLOW control files and introduced additional commands to ensure the TUFLOW SWMM model runs smoothly. In this section, we will format and organize the TUFLOW control files to enhance readability, thereby improving the overall functionality of the model. This can be done by:
+
In the previous sections, we removed unnecessary commands from the TUFLOW Control Files and introduced additional commands to ensure the TUFLOW SWMM model runs smoothly. In this section, we will format and organize the TUFLOW control files to enhance readability, thereby improving the overall functionality of the model. This can be done by:
:* Using relative file paths to specify the location of various files and layers in the model.
+
<ol>
:* Including a title at the beginning of each control file. For example, <font color="green"><tt>! TUFLOW CONTROL FILE (.TCF) defines the model simulation parameters and directs input from other data sources</tt></font>.
+
<li> Including a title at the beginning of each control file. For example:<br>
:* Adding headings to sections of the control file. For example, <font color="green"><tt>! MODEL INITIALIZATION</tt></font> could be used as a header for the commands required to initialize the TUFLOW SWMM model.
+
<font color="green"><tt>! Project: XYZ</tt></font>.<br>
:* Utilizing comments to explain the purpose of commands. For example, <font color="blue"><tt>Spatial Database </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> ..\model\gis\1D2D_Urban_001.gpkg </tt></font> <font color="green"><tt> ! Specify the location of the GeoPackage Spatial Database</tt></font>.<br>
+
<font color="green"><tt>! Author: Jane Smith</tt></font>
 +
<li> Adding headings to organize commands into sub-sections. For example:<br>
 +
<font color="green"><tt>! MODEL INITIALIZATION</tt></font><br>
 +
<font color="green"><tt>! SOLUTION SCHEME</tt></font><br>
 +
<font color="green"><tt>! MODEL INPUTS</tt></font><br>
 +
<font color="green"><tt>! TIME CONTROLS</tt></font><br>
 +
<font color="green"><tt>! OUTPUT FOLDERS</tt></font><br>
 +
<font color="green"><tt>! OUTPUT SETTINGS</tt></font><br>
 +
<li> Utilizing comments to explain the purpose of commands. For example, <font color="blue"><tt>GIS Format == </tt></font> <font color="red"><tt>== </tt></font> <font color="black"><tt> GPKG </tt></font> <font color="green"><tt> ! Specify GPKG as the output format for all GIS files</tt></font>.<br>
 
<br>
 
<br>
If using the provided model conversion dataset, the final Control files should look like this:<br>
+
If using the provided model conversion dataset, after formatting, the final TUFLOW Control File may look like this:<br>
 
'''<font color="red"> insert images when dataset finalised </font>'''
 
'''<font color="red"> insert images when dataset finalised </font>'''
 
<br>
 
<br>

Revision as of 11:48, 16 February 2024

Format TUFLOW Control Files (Optional)

In the previous sections, we removed unnecessary commands from the TUFLOW Control Files and introduced additional commands to ensure the TUFLOW SWMM model runs smoothly. In this section, we will format and organize the TUFLOW control files to enhance readability, thereby improving the overall functionality of the model. This can be done by:

  1. Including a title at the beginning of each control file. For example:
    ! Project: XYZ.
    ! Author: Jane Smith
  2. Adding headings to organize commands into sub-sections. For example:
    ! MODEL INITIALIZATION
    ! SOLUTION SCHEME
    ! MODEL INPUTS
    ! TIME CONTROLS
    ! OUTPUT FOLDERS
    ! OUTPUT SETTINGS
  3. Utilizing comments to explain the purpose of commands. For example, GIS Format == == GPKG ! Specify GPKG as the output format for all GIS files.

    If using the provided model conversion dataset, after formatting, the final TUFLOW Control File may look like this:
    insert images when dataset finalised
    Up
    Go-up.png Back to XPSWMM to TUFLOW Conversion Page