Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reverse Electrodialysis model #78

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
de6d633
Add Reverse Electrodialysis model
tristantc Dec 9, 2024
ecea6f4
Fix typos in documentation strings for ion-exchange membrane type and…
tristantc Dec 9, 2024
716c908
Update number of RED units `nr` in data file sheet stack_param
tristantc Dec 10, 2024
270b2f3
Refactor variable naming for clarity in data processing functions, co…
tristantc Dec 16, 2024
540424c
Refactor REDprocess.py: streamline imports, enhance function document…
tristantc Dec 16, 2024
1651b95
Use new parameters instead of "magic numbers" and apply `ureg` for un…
tristantc Dec 16, 2024
d3c9048
Add auxiliary equipment set and cost parameters for pump capital cost…
tristantc Dec 16, 2024
136276c
Fix typo in documentation for auxiliary equipment set in REDprocess.py
tristantc Dec 16, 2024
abfc46a
Add new CSV files for reverse electrodialysis parameters and data
tristantc Dec 16, 2024
e2259c6
Import from CSV commented-out in REDprocess.py
tristantc Dec 16, 2024
f452fea
Add reverse electrodialysis module and update imports
tristantc Dec 16, 2024
9174f3c
Refactor imports in REDprocess.py for clarity and organization
tristantc Dec 17, 2024
2fb66d9
Refactor imports in REDstack.py for improved organization and clarity
tristantc Dec 18, 2024
731285e
Replace Excel file imports with CSV file imports for stack parameters…
tristantc Dec 18, 2024
e5a482f
Refactor `REDstack.py`: remove comments, and update documentation
tristantc Dec 18, 2024
92439d5
Add temperature correction factor to solution conductivity in `REDsta…
tristantc Dec 18, 2024
ef77253
Add dynamic viscosity parameter to `REDstack` model and update calcul…
tristantc Dec 18, 2024
caa9d97
Apply `ureg` for unit conversion in `REDstack.py`
tristantc Dec 18, 2024
98b39a8
Add dynamic viscosity and to REDprocess model
tristantc Dec 19, 2024
f56a40c
Refactor `REDprocess.py`: improve documentation and update unit conve…
tristantc Dec 19, 2024
f18f349
Fix scale factor in power output calculation in `REDprocess.py`
tristantc Dec 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gdplib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
import gdplib.ex1_linan_2023
import gdplib.small_batch
import gdplib.cstr
import gdplib.reverse_electrodialysis
29 changes: 29 additions & 0 deletions gdplib/reverse_electrodialysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Reverse Electrodialysis Model

This is a GDP model for the optimal design of the reverse electrodialysis (RED) process to recover energy from salinity gradients.

The instance is defined based on the Illustrative example from [^1].

## Problem Details

### Solution

Best known objective value: - $15,391


### Size

| Component | Number |
|:----------------------|---------:|
| variables | 776 |
| binary_variables | 8 |
| integer_variables | 0 |
| continuous_variables | 768 |
| disjunctions | 4 |
| disjuncts | 8 |
| constraints | 794 |
| nonlinear_constraints | 162 |

## Source paper:

> [^1]: Tristán, C., Fallanza, M., Ibáñez, R., Ortiz, I., & Grossmann, I. E. (2023). A generalized disjunctive programming model for the optimal design of reverse electrodialysis process for salinity gradient-based power generation. Computers & Chemical Engineering, 174, 108196. https://doi.org/https://doi.org/10.1016/j.compchemeng.2023.108196
Loading
Loading