Package: rcg
Rapid catchment generatorTool for rapid prototyping of a hydraulic model that can be read and edited with SWMM. The generator was created using feature analysis and surface runoff research from the literature. Fuzzy logic controller rules were developed using parameterized categories of soil, slope, and permeability. The catchment configuration procedure was simplified by mapping typical storage and Manning's coefficients. The use of fuzzy logic rules allows the system to be modified to adjust the categories to certain situations. The use of membership functions allows us to increase computation accuracy and customize the tool to diverse applications. Following alteration of the catchment in the SWMM GUI allows for accurate portrayal of the real condition of the catchment.RequirementsPython 3UsageCreate a virtual environment:python3 -m venv venvDownload and install the required dependencies:python3 pip install -r requirementsTo run the script, use the following command:python3 rcg.runner file pathwherefile pathis the path to the SWMM model file.Enter data into the terminal according to the instructions it displays.The file is automatically saved in the same directory.AboutFor the construction of the catchment generator, the type of land use was divided according to Table 1,the land cover according to Table 2.The categories were determined on the basis of the data presented by (Dołęga, Rogala, 1973), given below in Table 3.Table 1. Land use categoriesNumberLand Use1marshes and lowlands2flats and plateaus3flats and plateaus in combination with hills4hills with gentle slopes5steeper hills and foothills6hills and outcrops of mountain ranges7higher hills8mountains9highest mountainsTable 2. Land cover categoriesNumberLand cover1medium conditions2permeable areas3permeable terrain on plains4hilly5mountains6bare rocky slopes7urban8suburban9rural10forests11meadows12arable13marshesTable 3. Runoff coefficients o according to IszkowskiNumberTopographic terrain definitionDrainage coefficient ϕ1marshes and lowlands0.202flats and plateaus0.253flats and plateaus in combination with hills0.304hills with gentle slopes0.355steeper hills and foothills0.406hills and outcrops of mountain ranges0.457higher hills0.508mountains0.559highest mountains0.60-0.70Table 4 shows what and how feature values are generated.Table 4. SWMM catchment data.Parameter nameExplanationNameCatchment names (ID) are generated by adding a number.RaingageWhen "raingage exists in the uploaded file, it will be assigned to the catchment area being built. If it does not exist, it will be added to the file along with the "timeseries" and assigned to the catchment area being generated.OutletIf there are receivers in the transferred file, the program will automatically assign it to the catchment area, if there are none, the name of the generated catchment area will be assigned.AreaA parameter passed by the user.Percent ImpervParameter calculated as described above and assigned to the catchment area.WidthThe generated catchment areas are square in shape therefore the length of the side of the catchment area is assigned.Percent SlopeParameter calculated as described above and assigned to the catchment area.N-ImpervThe value taken based on the linguistic variables passed to the fuzzy logic controller which were previously mapped with Manning coefficients.N-PervThe value taken based on the linguistic variables passed to the fuzzy logic controller which were previously mapped with Manning coefficients.Dstore-ImpervThe value taken based on the linguistic variables passed to the fuzzy logic controller which were previously mapped with typical storage values.Dstore-PervThe value taken based on the linguistic variables passed to the fuzzy logic controller which were previously mapped with typical storage values.Percent Zero ImpervThe value taken based on the linguistic variables passed to the fuzzy logic controller which were previously mapped with typical storage values.RouteToOdpływ z obszarów imperv i perv spływa bezpośrednio do wylotuCoordinateSquare-shaped catchments are generated, located so that one side is the edge of the contact.