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

Conversation

tristantc
Copy link
Contributor

Introduce a new GDP model for the optimal design of the reverse electrodialysis process, including relevant data and documentation.

Copy link
Member

@bernalde bernalde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't reviewed the REDstack.py file but I suppose that many of the comments for the other python file apply, so let's cover those for both files first, and then I will complete the review.
In general, there are a few typos, many "magic number" (numbers in the constraints that should be defined as parameters) and several comments that should be either removed or integrated as notes or documentation of the Pyomo model elements.
Another big one is that I want you to replace the Excel file with CSV files and sort out the imports

gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
wnd_dir = os.path.dirname(os.path.realpath(__file__))


# The data.xlsx file contains the financial and stack parameters, and properties of the high and low salinity feed streams.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you import this from CSV files instead of Excel? These are harder to read in Unix.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to load data from CSVs but ran into an AttributeError, so I need to work on a solution.
Commented out in commit e2259c6

gdplib/reverse_electrodialysis/REDprocess.py Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
gdplib/reverse_electrodialysis/REDprocess.py Outdated Show resolved Hide resolved
…rrect typos, remove comments, and update documentation
… correlation, operational and maintenance cost, stack capital cost, civil and infrastructure cost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants