Skip to main content

Software for predicting the brine concentrations and scaling quantities after RO desalination.

Project description

PyPI version Downloads Documentation Status License

Reverse Osmosis Scaling Software in Python (ROSSpy) offers an open-source API to simulate the reactive transport geochemistry of Reverse Osmosis desalination. ROSSpy essentially translates user specifications of an RO system into PHREEQpy, which is the Python version of PHREEQC. The examples/scaling/scaling_validation directory of the ROSSpy GitHub details the numerous functions and accuracy of ROSSPy via Notebook examples. We encourage users and developers to critique and improve ROSSpy, as an open-source (MIT License) library, through GitHub issues.

The complete documentation is provided by ReadTheDocs.

Installation

The IPHREEQC module must be installed before ROSSpy can be executed, since this is the source of geochemical calculations and data. The appropriate version of IPHREEQC can be installed from the USGS . Linux installation may require addition steps:

wget https://water.usgs.gov/water-resources/software/PHREEQC/iphreeqc-3.7.3-15968.tar.gz
tar -xzvf iphreeqc-3.7.3-15968.tar.gz
cd iphreeqc-3.7.3-15968
./configure
make
make check
sudo make install

Then either use the full path to the shared libray when making an instance of phreeqc_dll.IPhreeqc:

phreeqc = phreeqpy.iphreeqc.phreeqc_dll.IPhreeqc('/full/path/to/libiphreeqc.so')

or copy the shared object into phreeqpy/iphreeqc replacing the existing one, such as:

sudo cp /usr/local/lib/libiphreeqc.so  /path/to/site-packages/phreeqpy/iphreeqc/libiphreeqc.so.0.0.0

ROSSpy per se is then installed in a command prompt, Powershell, Terminal, or Anaconda Command Prompt via pip:

pip install rosspy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ROSSpy-0.1.2.tar.gz (532.9 kB view details)

Uploaded Source

File details

Details for the file ROSSpy-0.1.2.tar.gz.

File metadata

  • Download URL: ROSSpy-0.1.2.tar.gz
  • Upload date:
  • Size: 532.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for ROSSpy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7792b2eab79da46171dbbe2014200e3779efa18f5c4da3e66ec5eef15ee9640f
MD5 9b61712ad7c9ef71d12e77784d3b7a7b
BLAKE2b-256 49c229c84e354fcbca20487e4730d9509513a1e707dfe11e87b6ad644209e47b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page