Using Parameter Sweep in WaterTAP to Analyze New Water Treatment Technologies

Kinshuk Panda, Bernard Knueven, Ethan Young, Sam Helman, Jeffery Allen, Alexander Dudchenko

Research output: NRELTechnical Report

Abstract

We describe a powerful and generalized parameter sweep tool in this report that was originally developed to analyze the performance of existing and novel water treatment models being developed in WaterTAP. Since WaterTAP is built upon IDAES and Pyomo, the parameter sweep tool can be used to systematically explore and debug the behavior of most Pyomo and IDAES numerical models. In order to enable meaningful analyses, the parameter sweep tool has been designed with the following features: 1) Model flexibility: The parameter sweep tool does not enforce any restrictions on the types of models that can be used with it. As long as a Pyomo model can be solved and the parameter is active and mutable, the tool only needs functions that describe how to run the model, the sweep parameters, and the output quantities of interest. 2) Flexible sampling: The parameter sweep tool has inbuilt functions to generate samples from a random distribution or a multidimensional Euclidean space. Furthermore, the users have to ability to supply samples generated from a tool of their choice. 3) Multiple sweep types: A user can choose from one of 3 types of parameter sweeps depending on their needs. 4) Detailed outputs: Outputs generated by the parameter sweep tool can be stored in detailed H5 file or user-friendly CSV files for post processing. 5) Parallel computing: The parameter sweep supports shared and distributed memory parallel computing to enable the use of high performance computers (HPC) for large-scale analyses. 6) Modular: The parameter sweep tool is self-contained and can easily be integrated within an outer-loop analysis or as desired by the user. 7) Ease of use: The tool is well documented and a simple sweep can be easily executed by following the online documentation in a few lines of code. We demonstrate the use of the parameter sweep tool on a simple water treatment system from the WaterTAP repository and show its parallel scaling performance on an Apple laptop and NREL's Eagle HPC. The parameter sweep tool is actively being used with models currently being developed within WaterTAP and we expect its use to grow beyond it to other IDAES and Pyomo models.
Original languageAmerican English
Number of pages31
DOIs
StatePublished - 2024

NREL Publication Number

  • NREL/TP-2C00-90162

Keywords

  • Eagle
  • HPC
  • IDAES
  • NAWI
  • parallel programming
  • parameter sweep
  • Pyomo
  • Python
  • research capabilities
  • sampling
  • transportation
  • water treatment
  • WaterTAP

Fingerprint

Dive into the research topics of 'Using Parameter Sweep in WaterTAP to Analyze New Water Treatment Technologies'. Together they form a unique fingerprint.

Cite this