freiburgermsu/ROSSpy — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a Python package for simulating scale formation and brine concentration in reverse osmosis desalination systems. I want users to enter the basic details of an RO setup and water chemistry, then have the tool translate that into geochemical calculations using PHREEQC through Python, so they can see how scaling risk and brine chemistry change through the system.

Please make it usable both as a normal Python API and through an interactive notebook for people who are more comfortable changing inputs and rerunning cells. Include simple examples that validate the scaling simulations and show typical workflows. Add clear installation instructions, including the extra IPHREEQC setup from USGS, since that part is easy to miss.

Package it so it can be installed with pip, add documentation that could be published on ReadTheDocs, and include a citation section for the related reverse osmosis scaling paper. Look up the current PHREEQC and Python packaging docs online if you need to.

Want more depth? Deep Reverse