-
Notifications
You must be signed in to change notification settings - Fork 12
Revised vapor composition constraints fix ZeroDivisionError when gdp.hull reformulation is applied #47
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
Revised vapor composition constraints fix ZeroDivisionError when gdp.hull reformulation is applied #47
Changes from 5 commits
2838304
f798d9d
a70395b
c19329c
8aceb54
90e289d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,28 @@ | ||
| """ | ||
| Calculation of the theoretical minimum number of trays and initial | ||
| temperature values. | ||
| (written by E. Soraya Rawlings, esoraya@rwlngs.net) | ||
|
|
||
| The separation of four components require a sequence of at least three distillation | ||
| columns. Here, we calculate the minimum number of theoretical trays for the three | ||
| columns. The sequence is shown in Figure 2. | ||
|
|
||
| COLUMN 1 COLUMN 2 COLUMN 3 | ||
| ----- ---- ----- | ||
| | | | | | | | ||
| ----- | A ----- | ----- | | ||
| | |<---> B -- | |<----> A -- | |<---> A | ||
| | | C | | | B | | | | ||
| A | | | | | | | | | ||
| B | | | | | | | | | ||
| C --->| | -->| | -->| | | ||
| D | | | | | | | ||
| | | | | | | | ||
| | |<- | |<- | |<- | ||
| ----- | ----- | ----- | | ||
| | | | | | | | ||
| -------> D -------> C -------> B | ||
| Figure 2. Sequence of columns for the separation of a quaternary mixture | ||
| Calculation of the theoretical minimum number of trays and initial | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nonblocking: The current PR diff still fails
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Addressed in 90e289d. Normalized touched Kaibel line endings and trailing whitespace; |
||
| temperature values. | ||
| (written by E. Soraya Rawlings, esoraya@rwlngs.net) | ||
|
|
||
| The separation of four components require a sequence of at least three distillation | ||
| columns. Here, we calculate the minimum number of theoretical trays for the three | ||
| columns. The sequence is shown in Figure 2. | ||
|
|
||
| COLUMN 1 COLUMN 2 COLUMN 3 | ||
| ----- ---- ----- | ||
| | | | | | | | ||
| ----- | A ----- | ----- | | ||
| | |<---> B -- | |<----> A -- | |<---> A | ||
| | | C | | | B | | | | ||
| A | | | | | | | | | ||
| B | | | | | | | | | ||
| C --->| | -->| | -->| | | ||
| D | | | | | | | ||
| | | | | | | | ||
| | |<- | |<- | |<- | ||
| ----- | ----- | ----- | | ||
| | | | | | | | ||
| -------> D -------> C -------> B | ||
| Figure 2. Sequence of columns for the separation of a quaternary mixture | ||
| """ | ||
|
|
||
| from __future__ import division | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| """ Properties of the system """ | ||
| """Properties of the system""" | ||
|
|
||
| from pyomo.environ import ConcreteModel | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| """ Side feed flash """ | ||
| """Side feed flash""" | ||
|
|
||
| from pyomo.environ import ( | ||
| ConcreteModel, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking: This removes the existing
m.gamscalar component fromHDA_model()and replaces it withm.heat_capacity_ratio. That avoids them.gammacollision, but it also breaks existing HDA scripts that access the pre-existing heat-capacity ratio asmodel.gam, and this PR is otherwise about Kaibel. Please preserve the existing component name (m.gam) and use it in the compressor/valve expressions, while keeping the indexed activity-coefficient variable asm.gamma; update the regression to assert thatmodel.gamstill exists andmodel.gammaremains indexed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 90e289d.
m.gamis restored inHDA_model(), compressor/valve references use it again, and the regression now assertsmodel.gamremains available whilemodel.gammaremains indexed.