To all SWMM continuous simulation users:
I would like to retract an earlier email in which I mentioned that large watershed models run using the Runoff block can overcome an interface or scratch file problem by changing the record length and blocksize of the interface or scratch file. These changes do help somewhat but the underlying cause of the problem is not addressed.
The real reason large watershed models (by large I mean thousands of watersheds and at least ten pollutants) were experiencing interface and scratch file problems is that the file size was exceeding a Windows limitation. Windows 95/98/Me files have to be 2 GB or less. Windows NT with Fat32 files have to be 4 GB's or less. Windows NT with NFTS drives or Windows XP with NFTS drives supposedly can have any file size but it still seemed to fail around the 4 GB limit. We were able to reach file sizes of 4.4 or 4.2 GB by changing the blocksize but this was a false solution.
We finally realized that the SWMM architecture needed to be changed. Currently in version 4.4h of SWMM and earlier versions when you ran 5,000 watersheds without any gutters in runoff then 5,000 inlets would be saved to the interface file. Additionally, if you also wanted to print out the loads at the end of runoff then 5,000 inlet flows and loads would be saved to a scratch file. At the end of an aborted simulation you would have either two 2 GB files or two 4 GB files basically containing the same information. This results in a severe crimping of the possibilities for continuous simulation because a 5,000 watershed model could only be run for one or two years.
A change was made to the runoff layer of SWMM to allow the flow totals and loads to be calculated and saved to an array at each time step as an option. This eliminates both the need for the interface file and the scratch file in runoff. Now with this option essentially any number of watersheds can be run for any number of years because the file size limitation disappears. A further advantage is that the model runs are appreciably faster (2 to 4 times) because much of the I/O overhead has disappeared during the simulation.
Best Regards,
Robert Dickinson
dickinsonre@cdm.com