Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Build Status

REWET

REstoration of Water after Event Tool (REWET) is a tool for simulating the functionality of water distribution networks after natural hazard events. It is designed to support any network with state-of-the-art hydraulic simulation capabilities and damage modeling.

Documentation

REWET's documentation is being devloped and is accessible. Meanwhile, please refer to the PhD Dissertation.

Installation

The current release of REWET (V0.2.0-Alpha.1) supports Windows, Linux, and MacOS(Excluding M1, M2 and M3 CPUS). The repository version also supports Linux AMD64.

1. Dependencies and Virtual Environment

To install the package, first install the dependencies. Using a virtual environment with Python virtual environment or Anaconda is recommended.

2. Install REWET

For installing REWET, please make sure you have Python installed on your machine. The latest version of the Pyhton that we tested REWET with is 3.9.13. However, you may be able to run REWET with higher version too. We just did not test it! Also, the oldest version of Python that REWET works with is 3.6. Based n your needs, you can choose one of the following methods.

2.1 PyPi

After activating the virtual environment, you can easily install REWET using PyPi. To so so, open the comman prompt/terminal in your machine and type the following:

pip3 install rewet

2.2 Download the Repository

You can also use GIT to clone REWET's repository and change the current directory to the cloned repository:

git clone https://github.com/snaeimi/REWET.git
cd REWET

Alternatively, download the code and unzip the file from the project GitHub and change the current directory to the decompressed directory.

2.2.1 Install as Users

Being in REWET's directory, type:

python -m pip install
2.2.2 Install as Developers

Being in REWET's directory, type:

python -m pip install -e .

When you install REWET as developer (i.e., using "-e ."), the package is not coppied to where Python usually keeps its packages. This helps you to modify and use the code as you go.

Usage

After installing REWET, you can use it in several ways. To run REWET, import and run it in any code:

from rewet.initial import Starter
start = Starter()
start.run()

Running the code above will execute the example. However, you may want to run your own network and modify other inputs. To see a list of inputs, you can explore rewet/input/settings.py. Any variable in the process scenario settings classes can be an input to REWET. REWET accepts JSON formatted input with variables from the settings.py file. You need to overwrite the default variable values in settings.py with your own values using a JSON file and pass the JSON file path and name when you run REWET. For example, let's assume we want to change the simulation run to 1 day. We will make a JSON file called input.json and fill it with the following data:

{
    "RUN_TIME": 86400,
}

After saving the file, we will pass the file path to the run function (the JSON file extension must be .json or REWET will not recognize it as a JSON file):

from rewet.initial import Starter
start = Starter()
start.run("input.json")

Contributtiom

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

For any potential collaboration, please contact the author.

Citation

When you use REWET, please cite REWET as follows:

Sina Naeimi, Rachel A. Davidson. Forthcoming. "REWET: A Tool to Model System Function and Restoration of Damaged Water Supply Systems." [Forthcomming] ASCE Journal of Infrastructure Systems. 10.1061/JITSE4/ISENG-2427

License

REWET is released under the MIT license. See LICENSE for more details.

  • WNTR License: is distributed under the MIT License. Please refer to the WNTR license file for more information.
  • EPANET License: EPANET is distributed under the Public Domain. Please refer to the EPANET license file for more information.

News

REWET has been adapted in NHERI SimCenter's R2DTool V4.2 [1].

ACKNOWLEDGMENTS

This project was funded by National Science Foundation Award No. CMMI-1735483. The developer also extends gratitude to the Los Angeles Department of Water and Power (LADWP) for providing the input and water network, which served as the testbed for the development of REWET. REWET was produced as part of a Doctoral Dissertation at the University of Delaware, supervised by Dr. Rachel Davidson, Department of Civil and Environmental Engineering, University of Delaware.

This project uses the following tools:

  • Water Network Tool for Resilience (WNTR) [2] developed by the U.S. Environmental Protection Agency. WNTR is a Python package designed for analyzing the resilience of water distribution networks. For more information about WNTR, visit the official WNTR documentation.
  • EPANET [3] Developed by the U.S. Environmental Protection Agency, EPANET is a software application used throughout the world to model water distribution piping systems. For more information about EPANET, visit the official EPANET documentation

image

References

[1] Frank McKenna, Stevan Gavrilovic, Jinyan Zhao, Kuanshi Zhong, Adam Zsarnoczay, Barbaros Cetiner, Sang-ri Yi, Aakash Bangalore Satish, Sina Naeimi, & Pedro Arduino. (2024). NHERI-SimCenter/R2DTool: Version 4.2.0 (v4.2.0). Zenodo. https://doi.org/10.5281/zenodo.11175489

[2] Klise, K.A., Hart, D.B., Bynum, M., Hogge, J., Haxton, T., Murray, R., Burkhardt, J. (2020). Water Network Tool for Resilience (WNTR) User Manual: Version 0.2.3. U.S. EPA Office of Research and Development, Washington, DC, EPA/600/R-20/185, 82p.

[3] Rossman, L., H. Woo, M. Tryby, F. Shang, R. Janke, AND T. Haxton. EPANET 2.2 User Manual. U.S. Environmental Protection Agency, Washington, DC, EPA/600/R-20/133, 2020.

Metadata

Release files for rewet 0.2.1a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rewet 0.2.1a3
File Size Uploaded Provenance Actions
rewet-0.2.1a3.tar.gz 851.2 kB Without provenance Details for rewet-0.2.1a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rewet 0.2.1a3
File Interpreter ABI Platform Actions
rewet-0.2.1a3-py3-none-any.whl Python 3 none any Details for rewet-0.2.1a3-py3-none-any.whl

Total release size: 1.7 MB

Release files / rewet-0.2.1a3.tar.gz

Download URL rewet-0.2.1a3.tar.gz
Size 851.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6b13ba3ba60677b45d7cd8eb7eb430dfce299af4e364befff0c5f6f19249e5f1
BLAKE2b-256 checksum
How to use checksums
7a174adf753285b6e3729bd097c14ce48cfd450f4c08310de3ceddd06e785065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / rewet-0.2.1a3-py3-none-any.whl

Download URL rewet-0.2.1a3-py3-none-any.whl
Size 887.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d39001b87ffab159801b34df637ec96ac2119977be09a1fe64b37d870038807
BLAKE2b-256 checksum
How to use checksums
4ec6257e83b141e807ca828d704a49f11b011e1403190b4a9377ee5e86ba968e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Security for rewet 0.2.1a3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page