Building a Modular Interface Between a GM and three (3) Engineering Analysis Packages
Bruce R. MacAlister Principal Consultant + President, MacA1ister & MacAlister, Ltd.,1805 Grove Avenue Richmond, VA 23220-4505 Abstract This paper describes a rare opportunity to design an intetiace between a single AM/FM/GIS software package and three different external engineering analysis packages. These were for potable and waste water, natural gas, and electricity. The paper describes what was in common and what was not among these packages. It describes the modularity of the design in order to share the common elements. Learning Objectives
To meet the tasks, the design and the program “code” must meet these requirements:
The standard functions of the AMiFM/GIS are used for the process of selection. We are using Laser-Scan1 Gothic + Williams Associates2 Utility Libraries. Standard systems fimctions are: 1Laser-Scan, Ltd.,in the U.S., Willow Pond Plaza Sterling, VA 20164. 2WilliamsAssociates, 93HiddenHollowLane,Millwood, NY10546.
Mouse in hand, the user sits before the map display to select the facilities to be exported as a network. Clearly the user has to be an engineer or technician who knows how the analytic package works and is clear on the issue she or he is trying to resolve. Put your imagination in gear; here are some examples. Add sewage collection for a new development
Interfaces have been – or soon will be – written for three specific packages to suit the requirements of Greenwood (SC) Commissioners of Public Works. The packages are:
4Developed by the Civil Engineering SoftwareCenter,University ofKentucky, CollegeofEngineering, Lexington, KY40506-0046. 5A product Of Scottk Scott Systems, Inc., 500 Union Street, Suite 745, seattle, WA 981012332. 6Developed by the Risk Reduction Engineering Laboratory, Office of Research and Development, U.S. Environmental Protection Ageney,Cincinnati, OH 42268 7A product and trademark of Haestad Methods,37 Brookside Road, Waterbury, CT 06708. For export to an external analysis package to be worth the trouble, the network within the AM/FM/GIS must be correct. Facilities have to be checked for valid network connection as they are added or changed. Not many AM/FM/GIS systems can do is. The user’s tools should allow a subset of the entire network to be extracted. Although the entire network may be needed every year or two for a complete end to end study, most of the time the user wants to make estimates on a limited sub-network. The sub-network must have valid connections between facilities. If the entity relationships and cardinality are inherently correct within the AM/FM/GIS, the next requirement is to make sure that they do not get inadvertently corrupted during export. Here we have the advantage of a true object-oriented AM/FM/GIS with a true object-oriented database. Since the facilities are objects with behaviors, we simply have them “report” their connectivity, so there is little additional code to write or maintain. Looped flow must be accommodated for piped networks. In the past we could ignore looping for electrical networks, but that is changing. In an effort to improve power reliability, some utilities are practicing limited looping. Looping is a challenge to the export process since its detection is not always easy. If it is not detected, the AMFM7GIS can export duplicates of nodes and segments. Often the analysis package will detect this, so all you have wasted is time. Worse is when the package does not detect it and the resulting calculations are wrong and misleading. The normal output to an analysis package is a node-segment table constructed by the AM/FM/GIS. The core is a table that maps the facilities in the AIWFIWGIS to their equivalent in the analysis package. An example of the differences we see are:
We have found the most challenging data format limitations of the analysis systems are in field size and required data that are not naturally in the AM/FM/GIS. For example, GASWorkS limits the node name to 10 characters. As noted below, getting a totally unique, system-wide facility ID within 10 characters is nearly impossible. KYPIPE 2 requires header data that are meaningless to an AM/FM/GIS. Finally, the AM/FM/GIS export process must be able to export in DOS, Windows and UNIX file formats, That is not usually a problem for UNIX-based AM/FM/GIS systems, It maybe more difficult with DOS or Windows systems exporting to UNIX. Limits placed on the external analysis system Most AM/FM/GIS systems keep the network as many short pipe and conductor segments. It is exported as a very large set of nodes and segments. This can be a problem for some packages. Some are priced based upon the number of nodes and/or segments they process. Number of pipes or number of feeders are common terms. Some packages run very slowly with large numbers of nodes and segments. “Intelligence” within the AM/FM/GIS to join segments is not dependable. Since network validity has the highest priority, our export design will not risk loss of topology to reduce the output size. It must accommodate a large number of segments and nodes I An AM/FM/GIS with many classes or layers tends to have duplicate IDs or name when merged into a single extract. So, with thousands of facilities, AMiFM/GIS facility IDs need to be very long if they are to be unique. We have partly solved this by using “names” that are really unreadable hexadecimal hash in order to keep the size small. The major disadvantage is that the IDs are meaningless to the user and they cannot be imported back into the AM/FM/GIS, as discussed below. It must handle computer generated node and segment IDs or names 1 Some data needed for analysis are not stored in the AM/FM/GIS. An example is the roughness coefficient of a section of pipe. Ideally the package will accept whatever the AM/FM/GIS can deliver. The user will spend much more time with the analysis package than with the AM/FM/GIS. The user will change data exported from the AM/FM/GIS, insert data not available in the AM/FM/GIS, add new parameters and loads, “change” pipe or conductor sizes and lots of similar work to ask the “what if’ questions of the package. So, the analysis package needs a good interface for user changes to the imported network.. In most cases, a “mass change” fmction is important to produce a more sparse network than can be provided by the AM/FM/GIS. It must be able to import without all parameters complete I Design issues and choices The issues we found are described below.
Common features of analysis packages In the process of developing this interface, we categorized these common features of the analysis packages we examined:
Typical diffemcea among anatyaii packages Storage modeling may or may not be permitted:
Importing the analysis results into the AM/FM/GIS is not of great importance. Most modern analysis packages produce very readable graphic displays of results for engineers. Most package displays provide a graphical schematic, much more compact than a spatial or map display. Besides, time-based results, e.g. chemical or level changes, cannot be practically displayed on a map. Limits to importing Then there is the practicality of it all. Few packages are designed to export the results in a machine readable form for importing to a GIS. For example, KYPIPE 2 provides a printer-type report so variable in content that it cannot be reliably parsed. On the other hand, GASWorkS “fills in” the results fields in the original file so it can be imported to a GIS. Establishing readable, unique, unchanging facility “names” shared by the AM/FM/GIS and all analysis packages is currently not possible because the thousands of facilities in the AM/FM/GIS require longer names than the analysis packages can accommodate. Benefits to importing The primary benefit to importing the data into the AM/FM/GIS is that a much broader user community can have access to the information. Displaying selected results on an AM/FM/GIS map is more readable for most users. 11dBase is a trademark of whatever company now owns it. There is a trap that must be considered, though. You need policies to prevent misinterpretation of capacity and other results. In the hands of staff who like to give “no problem” answers to capacity questions, this information could get you in serious trouble. We have worked out some of the technical requirements. A series of additional display methods, behaviors or procedures need to be written for the GIS to display the results. A mechanism is also needed to manage multiple analysis results within the AM/FM/GIS. Conclusion Exporting network data from an AM/FM/GIS for use by an external analysis or modeling program has two major benefits. First, ~the AM/FM/GIS keeps accurate, validated network topology, the exported file will be more accurate than having an engineer read the paper maps and type the network into tables. Second, you save some time for your most costly professional staff. The ability of an AM/FMIGIS to export to an analysis package can be exaggerated. It cannot produce as sparse a network as a skilled technician or engineer. That can mean higher software fees, slower performance and more voluminous output. Like most technology, you have to judge when to use it and when not. Exporting from an AM/FM/GIS fits best for frequent, simple analysis of sub-networks. It is the sort of thing we avoided in the past because getting the data in was too costly and time consuming. Acknowledgments This work started out as a prototype for electric. David Turvey of Laser-Scan did the work to prove the design concepts. Mark Kennion of Laser-Scan then extended this for piped networks and took on the daunting problems of looping. Finally, Ramesh Kumar of Williams Associates had the pleasure of putting it all together into a practical system. They have my thanks for adding their great technical insight and corrections to what I envisioned. | ||
|
|