floodmodeller-api 0.4.2.post1__py3-none-any.whl → 0.4.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. floodmodeller_api/__init__.py +8 -9
  2. floodmodeller_api/_base.py +184 -176
  3. floodmodeller_api/backup.py +273 -273
  4. floodmodeller_api/dat.py +909 -831
  5. floodmodeller_api/diff.py +136 -119
  6. floodmodeller_api/ied.py +307 -306
  7. floodmodeller_api/ief.py +647 -637
  8. floodmodeller_api/ief_flags.py +253 -253
  9. floodmodeller_api/inp.py +266 -266
  10. floodmodeller_api/libs/libifcoremd.dll +0 -0
  11. floodmodeller_api/libs/libifcoremt.so.5 +0 -0
  12. floodmodeller_api/libs/libifport.so.5 +0 -0
  13. floodmodeller_api/{libmmd.dll → libs/libimf.so} +0 -0
  14. floodmodeller_api/libs/libintlc.so.5 +0 -0
  15. floodmodeller_api/libs/libmmd.dll +0 -0
  16. floodmodeller_api/libs/libsvml.so +0 -0
  17. floodmodeller_api/libs/libzzn_read.so +0 -0
  18. floodmodeller_api/libs/zzn_read.dll +0 -0
  19. floodmodeller_api/logs/__init__.py +2 -2
  20. floodmodeller_api/logs/lf.py +320 -312
  21. floodmodeller_api/logs/lf_helpers.py +354 -352
  22. floodmodeller_api/logs/lf_params.py +643 -529
  23. floodmodeller_api/mapping.py +84 -0
  24. floodmodeller_api/test/__init__.py +4 -4
  25. floodmodeller_api/test/conftest.py +9 -8
  26. floodmodeller_api/test/test_backup.py +117 -117
  27. floodmodeller_api/test/test_dat.py +221 -92
  28. floodmodeller_api/test/test_data/All Units 4_6.DAT +1081 -1081
  29. floodmodeller_api/test/test_data/All Units 4_6.feb +1081 -1081
  30. floodmodeller_api/test/test_data/BRIDGE.DAT +926 -926
  31. floodmodeller_api/test/test_data/Culvert_Inlet_Outlet.dat +36 -36
  32. floodmodeller_api/test/test_data/Culvert_Inlet_Outlet.feb +36 -36
  33. floodmodeller_api/test/test_data/DamBreakADI.xml +52 -52
  34. floodmodeller_api/test/test_data/DamBreakFAST.xml +58 -58
  35. floodmodeller_api/test/test_data/DamBreakFAST_dy.xml +53 -53
  36. floodmodeller_api/test/test_data/DamBreakTVD.xml +55 -55
  37. floodmodeller_api/test/test_data/DefenceBreach.xml +53 -53
  38. floodmodeller_api/test/test_data/DefenceBreachFAST.xml +60 -60
  39. floodmodeller_api/test/test_data/DefenceBreachFAST_dy.xml +55 -55
  40. floodmodeller_api/test/test_data/Domain1+2_QH.xml +76 -76
  41. floodmodeller_api/test/test_data/Domain1_H.xml +41 -41
  42. floodmodeller_api/test/test_data/Domain1_Q.xml +41 -41
  43. floodmodeller_api/test/test_data/Domain1_Q_FAST.xml +48 -48
  44. floodmodeller_api/test/test_data/Domain1_Q_FAST_dy.xml +48 -48
  45. floodmodeller_api/test/test_data/Domain1_Q_xml_expected.json +263 -0
  46. floodmodeller_api/test/test_data/Domain1_W.xml +41 -41
  47. floodmodeller_api/test/test_data/EX1.DAT +321 -321
  48. floodmodeller_api/test/test_data/EX1.ext +107 -107
  49. floodmodeller_api/test/test_data/EX1.feb +320 -320
  50. floodmodeller_api/test/test_data/EX1.gxy +107 -107
  51. floodmodeller_api/test/test_data/EX17.DAT +421 -422
  52. floodmodeller_api/test/test_data/EX17.ext +213 -213
  53. floodmodeller_api/test/test_data/EX17.feb +422 -422
  54. floodmodeller_api/test/test_data/EX18.DAT +375 -375
  55. floodmodeller_api/test/test_data/EX18_DAT_expected.json +3876 -0
  56. floodmodeller_api/test/test_data/EX2.DAT +302 -302
  57. floodmodeller_api/test/test_data/EX3.DAT +926 -926
  58. floodmodeller_api/test/test_data/EX3_DAT_expected.json +16235 -0
  59. floodmodeller_api/test/test_data/EX3_IEF_expected.json +61 -0
  60. floodmodeller_api/test/test_data/EX6.DAT +2084 -2084
  61. floodmodeller_api/test/test_data/EX6.ext +532 -532
  62. floodmodeller_api/test/test_data/EX6.feb +2084 -2084
  63. floodmodeller_api/test/test_data/EX6_DAT_expected.json +31647 -0
  64. floodmodeller_api/test/test_data/Event Data Example.DAT +336 -336
  65. floodmodeller_api/test/test_data/Event Data Example.ext +107 -107
  66. floodmodeller_api/test/test_data/Event Data Example.feb +336 -336
  67. floodmodeller_api/test/test_data/Linked1D2D.xml +52 -52
  68. floodmodeller_api/test/test_data/Linked1D2DFAST.xml +53 -53
  69. floodmodeller_api/test/test_data/Linked1D2DFAST_dy.xml +48 -48
  70. floodmodeller_api/test/test_data/Linked1D2D_xml_expected.json +313 -0
  71. floodmodeller_api/test/test_data/blockage.dat +50 -50
  72. floodmodeller_api/test/test_data/blockage.ext +45 -45
  73. floodmodeller_api/test/test_data/blockage.feb +9 -9
  74. floodmodeller_api/test/test_data/blockage.gxy +71 -71
  75. floodmodeller_api/test/test_data/defaultUnits.dat +127 -127
  76. floodmodeller_api/test/test_data/defaultUnits.ext +45 -45
  77. floodmodeller_api/test/test_data/defaultUnits.feb +9 -9
  78. floodmodeller_api/test/test_data/defaultUnits.fmpx +58 -58
  79. floodmodeller_api/test/test_data/defaultUnits.gxy +85 -85
  80. floodmodeller_api/test/test_data/ex3.ief +20 -20
  81. floodmodeller_api/test/test_data/ex3.lf1 +2800 -2800
  82. floodmodeller_api/test/test_data/ex4.DAT +1374 -1374
  83. floodmodeller_api/test/test_data/ex4_changed.DAT +1374 -1374
  84. floodmodeller_api/test/test_data/example1.inp +329 -329
  85. floodmodeller_api/test/test_data/example2.inp +158 -158
  86. floodmodeller_api/test/test_data/example3.inp +297 -297
  87. floodmodeller_api/test/test_data/example4.inp +388 -388
  88. floodmodeller_api/test/test_data/example5.inp +147 -147
  89. floodmodeller_api/test/test_data/example6.inp +154 -154
  90. floodmodeller_api/test/test_data/jump.dat +176 -176
  91. floodmodeller_api/test/test_data/network.dat +1374 -1374
  92. floodmodeller_api/test/test_data/network.ext +45 -45
  93. floodmodeller_api/test/test_data/network.exy +1 -1
  94. floodmodeller_api/test/test_data/network.feb +45 -45
  95. floodmodeller_api/test/test_data/network.ied +45 -45
  96. floodmodeller_api/test/test_data/network.ief +20 -20
  97. floodmodeller_api/test/test_data/network.inp +147 -147
  98. floodmodeller_api/test/test_data/network.pxy +57 -57
  99. floodmodeller_api/test/test_data/network.zzd +122 -122
  100. floodmodeller_api/test/test_data/network_dat_expected.json +21837 -0
  101. floodmodeller_api/test/test_data/network_from_tabularCSV.csv +87 -87
  102. floodmodeller_api/test/test_data/network_ied_expected.json +287 -0
  103. floodmodeller_api/test/test_data/rnweir.dat +9 -9
  104. floodmodeller_api/test/test_data/rnweir.ext +45 -45
  105. floodmodeller_api/test/test_data/rnweir.feb +9 -9
  106. floodmodeller_api/test/test_data/rnweir.gxy +45 -45
  107. floodmodeller_api/test/test_data/rnweir_default.dat +74 -74
  108. floodmodeller_api/test/test_data/rnweir_default.ext +45 -45
  109. floodmodeller_api/test/test_data/rnweir_default.feb +9 -9
  110. floodmodeller_api/test/test_data/rnweir_default.fmpx +58 -58
  111. floodmodeller_api/test/test_data/rnweir_default.gxy +53 -53
  112. floodmodeller_api/test/test_data/unit checks.dat +16 -16
  113. floodmodeller_api/test/test_ied.py +29 -29
  114. floodmodeller_api/test/test_ief.py +125 -24
  115. floodmodeller_api/test/test_inp.py +47 -48
  116. floodmodeller_api/test/test_json.py +114 -0
  117. floodmodeller_api/test/test_logs_lf.py +48 -51
  118. floodmodeller_api/test/test_tool.py +165 -152
  119. floodmodeller_api/test/test_toolbox_structure_log.py +234 -239
  120. floodmodeller_api/test/test_xml2d.py +151 -156
  121. floodmodeller_api/test/test_zzn.py +36 -34
  122. floodmodeller_api/to_from_json.py +218 -0
  123. floodmodeller_api/tool.py +332 -329
  124. floodmodeller_api/toolbox/__init__.py +5 -5
  125. floodmodeller_api/toolbox/example_tool.py +45 -45
  126. floodmodeller_api/toolbox/model_build/__init__.py +2 -2
  127. floodmodeller_api/toolbox/model_build/add_siltation_definition.py +100 -98
  128. floodmodeller_api/toolbox/model_build/structure_log/__init__.py +1 -1
  129. floodmodeller_api/toolbox/model_build/structure_log/structure_log.py +287 -289
  130. floodmodeller_api/toolbox/model_build/structure_log_definition.py +76 -76
  131. floodmodeller_api/units/__init__.py +10 -10
  132. floodmodeller_api/units/_base.py +214 -212
  133. floodmodeller_api/units/boundaries.py +467 -467
  134. floodmodeller_api/units/comment.py +52 -55
  135. floodmodeller_api/units/conduits.py +382 -402
  136. floodmodeller_api/units/helpers.py +123 -131
  137. floodmodeller_api/units/iic.py +107 -101
  138. floodmodeller_api/units/losses.py +305 -306
  139. floodmodeller_api/units/sections.py +444 -446
  140. floodmodeller_api/units/structures.py +1690 -1683
  141. floodmodeller_api/units/units.py +93 -104
  142. floodmodeller_api/units/unsupported.py +44 -44
  143. floodmodeller_api/units/variables.py +87 -89
  144. floodmodeller_api/urban1d/__init__.py +11 -11
  145. floodmodeller_api/urban1d/_base.py +188 -179
  146. floodmodeller_api/urban1d/conduits.py +93 -85
  147. floodmodeller_api/urban1d/general_parameters.py +58 -58
  148. floodmodeller_api/urban1d/junctions.py +81 -79
  149. floodmodeller_api/urban1d/losses.py +81 -74
  150. floodmodeller_api/urban1d/outfalls.py +114 -110
  151. floodmodeller_api/urban1d/raingauges.py +111 -111
  152. floodmodeller_api/urban1d/subsections.py +92 -98
  153. floodmodeller_api/urban1d/xsections.py +147 -144
  154. floodmodeller_api/util.py +77 -21
  155. floodmodeller_api/validation/parameters.py +660 -660
  156. floodmodeller_api/validation/urban_parameters.py +388 -404
  157. floodmodeller_api/validation/validation.py +110 -108
  158. floodmodeller_api/version.py +1 -1
  159. floodmodeller_api/xml2d.py +688 -673
  160. floodmodeller_api/xml2d_template.py +37 -37
  161. floodmodeller_api/zzn.py +387 -363
  162. {floodmodeller_api-0.4.2.post1.dist-info → floodmodeller_api-0.4.3.dist-info}/LICENSE.txt +13 -13
  163. {floodmodeller_api-0.4.2.post1.dist-info → floodmodeller_api-0.4.3.dist-info}/METADATA +82 -82
  164. floodmodeller_api-0.4.3.dist-info/RECORD +179 -0
  165. {floodmodeller_api-0.4.2.post1.dist-info → floodmodeller_api-0.4.3.dist-info}/WHEEL +1 -1
  166. floodmodeller_api/libifcoremd.dll +0 -0
  167. floodmodeller_api/test/test_data/EX3.bmp +0 -0
  168. floodmodeller_api/test/test_data/test_output.csv +0 -87
  169. floodmodeller_api/zzn_read.dll +0 -0
  170. floodmodeller_api-0.4.2.post1.dist-info/RECORD +0 -164
  171. {floodmodeller_api-0.4.2.post1.dist-info → floodmodeller_api-0.4.3.dist-info}/entry_points.txt +0 -0
  172. {floodmodeller_api-0.4.2.post1.dist-info → floodmodeller_api-0.4.3.dist-info}/top_level.txt +0 -0
@@ -1,53 +1,53 @@
1
- <?xml version="1.0" standalone="yes"?>
2
- <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked ADI" description="">
3
- <link1d link_to_model="ISIS1D">
4
- <link>GIS\Link.shp</link>
5
- <ief>Linked1D2D.ief</ief>
6
- <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
- </link1d>
8
- <logfile>Linked1D2D_ADI.log</logfile>
9
- <!--content for domain 'River 10m'-->
10
- <domain domain_id="River 10m">
11
- <computational_area>
12
- <xll>391800.0</xll>
13
- <yll>172600.0</yll>
14
- <dx>10</dx>
15
- <nrows>100</nrows>
16
- <ncols>80</ncols>
17
- <active_area>GIS\River_Active_Area.shp</active_area>
18
- <rotation>0</rotation>
19
- </computational_area>
20
- <topography>GIS\5M_DTM.asc</topography>
21
- <time>
22
- <start_time>00:00:00</start_time>
23
- <start_date>1/1/2000</start_date>
24
- <total unit="hour">5.00</total>
25
- </time>
26
- <run_data>
27
- <time_step> 5 </time_step>
28
- <scheme>ADI</scheme>
29
- <pulsedepth>1.0e-04</pulsedepth>
30
- <negdepththreshold>-1.0e-03</negdepththreshold>
31
- <velocityheadthreshold>0.1</velocityheadthreshold>
32
- <frictionincreasedepth>0.1</frictionincreasedepth>
33
- </run_data>
34
- <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
35
- <roughness law="manning" type="global">0.05</roughness>
36
- <output_results>
37
- <hazard_debris_factor_method>
38
- <static factor="1.0" />
39
- </hazard_debris_factor_method>
40
- <output output_id="" format="SMS9">
41
- <variables>Depth
42
- Velocity
43
- Elevation
44
- Flow</variables>
45
- <frequency>120</frequency>
46
- </output>
47
- <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
48
- </output_results>
49
- </domain>
50
- <advanced_options>
51
- <spatial_diagnostics>on</spatial_diagnostics>
52
- </advanced_options>
1
+ <?xml version="1.0" standalone="yes"?>
2
+ <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked ADI" description="">
3
+ <link1d link_to_model="ISIS1D">
4
+ <link>GIS\Link.shp</link>
5
+ <ief>Linked1D2D.ief</ief>
6
+ <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
+ </link1d>
8
+ <logfile>Linked1D2D_ADI.log</logfile>
9
+ <!--content for domain 'River 10m'-->
10
+ <domain domain_id="River 10m">
11
+ <computational_area>
12
+ <xll>391800.0</xll>
13
+ <yll>172600.0</yll>
14
+ <dx>10</dx>
15
+ <nrows>100</nrows>
16
+ <ncols>80</ncols>
17
+ <active_area>GIS\River_Active_Area.shp</active_area>
18
+ <rotation>0</rotation>
19
+ </computational_area>
20
+ <topography>GIS\5M_DTM.asc</topography>
21
+ <time>
22
+ <start_time>00:00:00</start_time>
23
+ <start_date>1/1/2000</start_date>
24
+ <total unit="hour">5.00</total>
25
+ </time>
26
+ <run_data>
27
+ <time_step> 5 </time_step>
28
+ <scheme>ADI</scheme>
29
+ <pulsedepth>1.0e-04</pulsedepth>
30
+ <negdepththreshold>-1.0e-03</negdepththreshold>
31
+ <velocityheadthreshold>0.1</velocityheadthreshold>
32
+ <frictionincreasedepth>0.1</frictionincreasedepth>
33
+ </run_data>
34
+ <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
35
+ <roughness law="manning" type="global">0.05</roughness>
36
+ <output_results>
37
+ <hazard_debris_factor_method>
38
+ <static factor="1.0" />
39
+ </hazard_debris_factor_method>
40
+ <output output_id="" format="SMS9">
41
+ <variables>Depth
42
+ Velocity
43
+ Elevation
44
+ Flow</variables>
45
+ <frequency>120</frequency>
46
+ </output>
47
+ <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
48
+ </output_results>
49
+ </domain>
50
+ <advanced_options>
51
+ <spatial_diagnostics>on</spatial_diagnostics>
52
+ </advanced_options>
53
53
  </ISIS2Dproject>
@@ -1,54 +1,54 @@
1
- <?xml version="1.0" standalone="yes"?>
2
- <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked FAST" description="">
3
- <link1d link_to_model="ISIS1D">
4
- <link>GIS\Link.shp</link>
5
- <ief>Linked1D2D.ief</ief>
6
- <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
- </link1d>
8
- <logfile>Linked1D2DFAST.log</logfile>
9
- <!--content for domain 'River 10m'-->
10
- <domain domain_id="River 10m">
11
- <computational_area>
12
- <xll>391800.0</xll>
13
- <yll>172600.0</yll>
14
- <dx>10</dx>
15
- <nrows>100</nrows>
16
- <ncols>80</ncols>
17
- <active_area>GIS\River_Active_Area.shp</active_area>
18
- <rotation>0</rotation>
19
- </computational_area>
20
- <topography>GIS\5M_DTM.asc</topography>
21
- <time>
22
- <start_time>00:00:00</start_time>
23
- <start_date>1/1/2000</start_date>
24
- <total unit="hour">5.00</total>
25
- </time>
26
- <run_data>
27
- <time_step>18000</time_step>
28
- <scheme>FAST</scheme>
29
- <merge>0.1</merge>
30
- <disc>0.1</disc>
31
- <filter>0.05</filter>
32
- <spilloption>singlespill</spilloption>
33
- <frictionCoef>0</frictionCoef>
34
- <momentumCoef>0</momentumCoef>
35
- <maxIteration>50000</maxIteration>
36
- <convergenceCrit>0.001</convergenceCrit>
37
- <preprocess_fast>true</preprocess_fast>
38
- <pathMarkup_fast>false</pathMarkup_fast>
39
- </run_data>
40
- <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
41
- <roughness law="manning" type="global">0.05</roughness>
42
- <output_results>
43
- <hazard_debris_factor_method>
44
- <static factor="1.0" />
45
- </hazard_debris_factor_method>
46
- <output output_id="" format="SMS9">
47
- <variables>Depth</variables>
48
- <frequency>900</frequency>
49
- </output>
50
- <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
51
- </output_results>
52
- </domain>
53
- <advanced_options />
1
+ <?xml version="1.0" standalone="yes"?>
2
+ <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked FAST" description="">
3
+ <link1d link_to_model="ISIS1D">
4
+ <link>GIS\Link.shp</link>
5
+ <ief>Linked1D2D.ief</ief>
6
+ <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
+ </link1d>
8
+ <logfile>Linked1D2DFAST.log</logfile>
9
+ <!--content for domain 'River 10m'-->
10
+ <domain domain_id="River 10m">
11
+ <computational_area>
12
+ <xll>391800.0</xll>
13
+ <yll>172600.0</yll>
14
+ <dx>10</dx>
15
+ <nrows>100</nrows>
16
+ <ncols>80</ncols>
17
+ <active_area>GIS\River_Active_Area.shp</active_area>
18
+ <rotation>0</rotation>
19
+ </computational_area>
20
+ <topography>GIS\5M_DTM.asc</topography>
21
+ <time>
22
+ <start_time>00:00:00</start_time>
23
+ <start_date>1/1/2000</start_date>
24
+ <total unit="hour">5.00</total>
25
+ </time>
26
+ <run_data>
27
+ <time_step>18000</time_step>
28
+ <scheme>FAST</scheme>
29
+ <merge>0.1</merge>
30
+ <disc>0.1</disc>
31
+ <filter>0.05</filter>
32
+ <spilloption>singlespill</spilloption>
33
+ <frictionCoef>0</frictionCoef>
34
+ <momentumCoef>0</momentumCoef>
35
+ <maxIteration>50000</maxIteration>
36
+ <convergenceCrit>0.001</convergenceCrit>
37
+ <preprocess_fast>true</preprocess_fast>
38
+ <pathMarkup_fast>false</pathMarkup_fast>
39
+ </run_data>
40
+ <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
41
+ <roughness law="manning" type="global">0.05</roughness>
42
+ <output_results>
43
+ <hazard_debris_factor_method>
44
+ <static factor="1.0" />
45
+ </hazard_debris_factor_method>
46
+ <output output_id="" format="SMS9">
47
+ <variables>Depth</variables>
48
+ <frequency>900</frequency>
49
+ </output>
50
+ <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
51
+ </output_results>
52
+ </domain>
53
+ <advanced_options />
54
54
  </ISIS2Dproject>
@@ -1,49 +1,49 @@
1
- <?xml version="1.0" standalone="yes"?>
2
- <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked FAST Dy" description="">
3
- <link1d link_to_model="ISIS1D">
4
- <link>GIS\Link.shp</link>
5
- <ief>Linked1D2D.ief</ief>
6
- <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
- </link1d>
8
- <logfile>Linked1D2FAST_dy.log</logfile>
9
- <!--content for domain 'River 10m'-->
10
- <domain domain_id="River 10m">
11
- <computational_area>
12
- <xll>391800.0</xll>
13
- <yll>172600.0</yll>
14
- <dx>10</dx>
15
- <nrows>100</nrows>
16
- <ncols>80</ncols>
17
- <active_area>GIS\River_Active_Area.shp</active_area>
18
- <rotation>0</rotation>
19
- </computational_area>
20
- <topography>GIS\5M_DTM.asc</topography>
21
- <time>
22
- <start_time>00:00:00</start_time>
23
- <start_date>1/1/2000</start_date>
24
- <total unit="hour">5.00</total>
25
- </time>
26
- <run_data>
27
- <time_step>5</time_step>
28
- <scheme>FAST Dynamic</scheme>
29
- <merge>0.1</merge>
30
- <disc>0.1</disc>
31
- <filter>0.05</filter>
32
- <preprocess_fast>true</preprocess_fast>
33
- <pathMarkup_fast>false</pathMarkup_fast>
34
- </run_data>
35
- <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
36
- <roughness law="manning" type="global">0.05</roughness>
37
- <output_results>
38
- <hazard_debris_factor_method>
39
- <static factor="1.0" />
40
- </hazard_debris_factor_method>
41
- <output output_id="" format="SMS9">
42
- <variables>Depth</variables>
43
- <frequency>900</frequency>
44
- </output>
45
- <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
46
- </output_results>
47
- </domain>
48
- <advanced_options />
1
+ <?xml version="1.0" standalone="yes"?>
2
+ <ISIS2Dproject xmlns="https://www.floodmodeller.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.floodmodeller.com http://schema.floodmodeller.com/4.0/2d.xsd" name="River 10m linked FAST Dy" description="">
3
+ <link1d link_to_model="ISIS1D">
4
+ <link>GIS\Link.shp</link>
5
+ <ief>Linked1D2D.ief</ief>
6
+ <mb frequency="60">Linked1D2D_MB1D.csv</mb>
7
+ </link1d>
8
+ <logfile>Linked1D2FAST_dy.log</logfile>
9
+ <!--content for domain 'River 10m'-->
10
+ <domain domain_id="River 10m">
11
+ <computational_area>
12
+ <xll>391800.0</xll>
13
+ <yll>172600.0</yll>
14
+ <dx>10</dx>
15
+ <nrows>100</nrows>
16
+ <ncols>80</ncols>
17
+ <active_area>GIS\River_Active_Area.shp</active_area>
18
+ <rotation>0</rotation>
19
+ </computational_area>
20
+ <topography>GIS\5M_DTM.asc</topography>
21
+ <time>
22
+ <start_time>00:00:00</start_time>
23
+ <start_date>1/1/2000</start_date>
24
+ <total unit="hour">5.00</total>
25
+ </time>
26
+ <run_data>
27
+ <time_step>5</time_step>
28
+ <scheme>FAST Dynamic</scheme>
29
+ <merge>0.1</merge>
30
+ <disc>0.1</disc>
31
+ <filter>0.05</filter>
32
+ <preprocess_fast>true</preprocess_fast>
33
+ <pathMarkup_fast>false</pathMarkup_fast>
34
+ </run_data>
35
+ <initial_conditions type="globalwaterlevel"> 0.0 </initial_conditions>
36
+ <roughness law="manning" type="global">0.05</roughness>
37
+ <output_results>
38
+ <hazard_debris_factor_method>
39
+ <static factor="1.0" />
40
+ </hazard_debris_factor_method>
41
+ <output output_id="" format="SMS9">
42
+ <variables>Depth</variables>
43
+ <frequency>900</frequency>
44
+ </output>
45
+ <massfile frequency="10">Linked1D2D_MB2D.csv</massfile>
46
+ </output_results>
47
+ </domain>
48
+ <advanced_options />
49
49
  </ISIS2Dproject>
@@ -0,0 +1,313 @@
1
+ {
2
+ "API Class": "floodmodeller_api.xml2d.XML2D",
3
+ "API Version": "0.4.2.post1",
4
+ "Object Attributes": {
5
+ "_filepath": "C:\\Users\\PIERCEJA\\OneDrive - Jacobs\\Documents\\Projects\\Flood Modeller API\\development\\floodmodeller-api\\floodmodeller_api\\test\\test_data\\Linked1D2D.xml",
6
+ "file": {
7
+ "API Class": "floodmodeller_api.backup.File",
8
+ "Object Attributes": {
9
+ "path": "C:\\Users\\PIERCEJA\\OneDrive - Jacobs\\Documents\\Projects\\Flood Modeller API\\development\\floodmodeller-api\\floodmodeller_api\\test\\test_data\\Linked1D2D.xml",
10
+ "ext": ".xml",
11
+ "dttm_str": "2024-04-17-14-09-24",
12
+ "file_id": "f2bb3ee3c2dd177c7bdfa93069585c1291a8a36d",
13
+ "backup_filename": "f2bb3ee3c2dd177c7bdfa93069585c1291a8a36d_2024-04-17-14-09-24.xml",
14
+ "temp_dir": "C:\\Users\\PIERCEJA\\AppData\\Local\\Temp",
15
+ "backup_dirname": "floodmodeller_api_backup",
16
+ "backup_dir": "C:\\Users\\PIERCEJA\\AppData\\Local\\Temp\\floodmodeller_api_backup",
17
+ "backup_csv_path": "C:\\Users\\PIERCEJA\\AppData\\Local\\Temp\\floodmodeller_api_backup\\file-backups.csv"
18
+ }
19
+ },
20
+ "_ns": "{https://www.floodmodeller.com}",
21
+ "_xmltree": null,
22
+ "_xsd": null,
23
+ "_xsdschema": null,
24
+ "_multi_value_keys": {
25
+ "python_set": [
26
+ "boundary",
27
+ "domain",
28
+ "file",
29
+ "fmfile",
30
+ "link",
31
+ "link1d",
32
+ "network",
33
+ "output",
34
+ "processorid",
35
+ "roughness",
36
+ "sediment_property_file",
37
+ "series",
38
+ "single",
39
+ "source",
40
+ "topography",
41
+ "topography_2",
42
+ "variable"
43
+ ]
44
+ },
45
+ "_raw_data": {
46
+ "name": "River 10m linked ADI",
47
+ "link1d": [
48
+ {
49
+ "link_to_model": "ISIS1D",
50
+ "link": [
51
+ "GIS\\Link.shp"
52
+ ],
53
+ "ief": "Linked1D2D.ief",
54
+ "mb": {
55
+ "frequency": "60",
56
+ "value": "Linked1D2D_MB1D.csv"
57
+ }
58
+ }
59
+ ],
60
+ "logfile": "Linked1D2D_ADI.log",
61
+ "domain": [
62
+ {
63
+ "domain_id": "River 10m",
64
+ "computational_area": {
65
+ "xll": 391800.0,
66
+ "yll": 172600.0,
67
+ "dx": 10,
68
+ "nrows": 100,
69
+ "ncols": 80,
70
+ "active_area": "GIS\\River_Active_Area.shp",
71
+ "rotation": 0
72
+ },
73
+ "topography": [
74
+ "GIS\\5M_DTM.asc"
75
+ ],
76
+ "time": {
77
+ "start_time": "00:00:00",
78
+ "start_date": "1/1/2000",
79
+ "total": {
80
+ "unit": "hour",
81
+ "value": 5.0
82
+ }
83
+ },
84
+ "run_data": {
85
+ "time_step": 5,
86
+ "scheme": "ADI",
87
+ "pulsedepth": 0.0001,
88
+ "negdepththreshold": -0.001,
89
+ "velocityheadthreshold": 0.1,
90
+ "frictionincreasedepth": 0.1
91
+ },
92
+ "initial_conditions": {
93
+ "type": "globalwaterlevel",
94
+ "value": 0.0
95
+ },
96
+ "roughness": [
97
+ {
98
+ "law": "manning",
99
+ "type": "global",
100
+ "value": 0.05
101
+ }
102
+ ],
103
+ "output_results": {
104
+ "hazard_debris_factor_method": {
105
+ "static": {
106
+ "factor": "1.0"
107
+ }
108
+ },
109
+ "output": [
110
+ {
111
+ "output_id": "",
112
+ "format": "SMS9",
113
+ "variables": [
114
+ "Depth",
115
+ "Velocity",
116
+ "Elevation",
117
+ "Flow"
118
+ ],
119
+ "frequency": 120
120
+ }
121
+ ],
122
+ "massfile": {
123
+ "frequency": "10",
124
+ "value": "Linked1D2D_MB2D.csv"
125
+ }
126
+ }
127
+ }
128
+ ],
129
+ "advanced_options": {
130
+ "spatial_diagnostics": "on"
131
+ }
132
+ },
133
+ "_data": {
134
+ "name": "River 10m linked ADI",
135
+ "link1d": [
136
+ {
137
+ "link_to_model": "ISIS1D",
138
+ "link": [
139
+ "GIS\\Link.shp"
140
+ ],
141
+ "ief": "Linked1D2D.ief",
142
+ "mb": {
143
+ "frequency": "60",
144
+ "value": "Linked1D2D_MB1D.csv"
145
+ }
146
+ }
147
+ ],
148
+ "logfile": "Linked1D2D_ADI.log",
149
+ "domain": [
150
+ {
151
+ "domain_id": "River 10m",
152
+ "computational_area": {
153
+ "xll": 391800.0,
154
+ "yll": 172600.0,
155
+ "dx": 10,
156
+ "nrows": 100,
157
+ "ncols": 80,
158
+ "active_area": "GIS\\River_Active_Area.shp",
159
+ "rotation": 0
160
+ },
161
+ "topography": [
162
+ "GIS\\5M_DTM.asc"
163
+ ],
164
+ "time": {
165
+ "start_time": "00:00:00",
166
+ "start_date": "1/1/2000",
167
+ "total": {
168
+ "unit": "hour",
169
+ "value": 5.0
170
+ }
171
+ },
172
+ "run_data": {
173
+ "time_step": 5,
174
+ "scheme": "ADI",
175
+ "pulsedepth": 0.0001,
176
+ "negdepththreshold": -0.001,
177
+ "velocityheadthreshold": 0.1,
178
+ "frictionincreasedepth": 0.1
179
+ },
180
+ "initial_conditions": {
181
+ "type": "globalwaterlevel",
182
+ "value": 0.0
183
+ },
184
+ "roughness": [
185
+ {
186
+ "law": "manning",
187
+ "type": "global",
188
+ "value": 0.05
189
+ }
190
+ ],
191
+ "output_results": {
192
+ "hazard_debris_factor_method": {
193
+ "static": {
194
+ "factor": "1.0"
195
+ }
196
+ },
197
+ "output": [
198
+ {
199
+ "output_id": "",
200
+ "format": "SMS9",
201
+ "variables": [
202
+ "Depth",
203
+ "Velocity",
204
+ "Elevation",
205
+ "Flow"
206
+ ],
207
+ "frequency": 120
208
+ }
209
+ ],
210
+ "massfile": {
211
+ "frequency": "10",
212
+ "value": "Linked1D2D_MB2D.csv"
213
+ }
214
+ }
215
+ }
216
+ ],
217
+ "advanced_options": {
218
+ "spatial_diagnostics": "on"
219
+ }
220
+ },
221
+ "name": "River 10m linked ADI",
222
+ "link1d": [
223
+ {
224
+ "link_to_model": "ISIS1D",
225
+ "link": [
226
+ "GIS\\Link.shp"
227
+ ],
228
+ "ief": "Linked1D2D.ief",
229
+ "mb": {
230
+ "frequency": "60",
231
+ "value": "Linked1D2D_MB1D.csv"
232
+ }
233
+ }
234
+ ],
235
+ "logfile": "Linked1D2D_ADI.log",
236
+ "domains": {
237
+ "River 10m": {
238
+ "domain_id": "River 10m",
239
+ "computational_area": {
240
+ "xll": 391800.0,
241
+ "yll": 172600.0,
242
+ "dx": 10,
243
+ "nrows": 100,
244
+ "ncols": 80,
245
+ "active_area": "GIS\\River_Active_Area.shp",
246
+ "rotation": 0
247
+ },
248
+ "topography": [
249
+ "GIS\\5M_DTM.asc"
250
+ ],
251
+ "time": {
252
+ "start_time": "00:00:00",
253
+ "start_date": "1/1/2000",
254
+ "total": {
255
+ "unit": "hour",
256
+ "value": 5.0
257
+ }
258
+ },
259
+ "run_data": {
260
+ "time_step": 5,
261
+ "scheme": "ADI",
262
+ "pulsedepth": 0.0001,
263
+ "negdepththreshold": -0.001,
264
+ "velocityheadthreshold": 0.1,
265
+ "frictionincreasedepth": 0.1
266
+ },
267
+ "initial_conditions": {
268
+ "type": "globalwaterlevel",
269
+ "value": 0.0
270
+ },
271
+ "roughness": [
272
+ {
273
+ "law": "manning",
274
+ "type": "global",
275
+ "value": 0.05
276
+ }
277
+ ],
278
+ "output_results": {
279
+ "hazard_debris_factor_method": {
280
+ "static": {
281
+ "factor": "1.0"
282
+ }
283
+ },
284
+ "output": [
285
+ {
286
+ "output_id": "",
287
+ "format": "SMS9",
288
+ "variables": [
289
+ "Depth",
290
+ "Velocity",
291
+ "Elevation",
292
+ "Flow"
293
+ ],
294
+ "frequency": 120
295
+ }
296
+ ],
297
+ "massfile": {
298
+ "frequency": "10",
299
+ "value": "Linked1D2D_MB2D.csv"
300
+ }
301
+ }
302
+ }
303
+ },
304
+ "advanced_options": {
305
+ "spatial_diagnostics": "on"
306
+ },
307
+ "restart_options": null,
308
+ "processor": null,
309
+ "unit_system": null,
310
+ "description": null,
311
+ "_log_path": "C:\\Users\\PIERCEJA\\OneDrive - Jacobs\\Documents\\Projects\\Flood Modeller API\\development\\floodmodeller-api\\floodmodeller_api\\test\\test_data\\Linked1D2D.lf2"
312
+ }
313
+ }