-
Notifications
You must be signed in to change notification settings - Fork 62
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 TVC model #1516
add TVC model #1516
Conversation
The failures are due to #1514 and are most likely unrelated to the changes in this PR. |
@ElmiraShamlou, just needs to add some documentation. |
# Empirical correlation constraints | ||
@self.Constraint(doc="Pressure Correction Factor (El-Dessouky, 1997)") | ||
def eq_PCF(b): | ||
A_PCF = 3e-7 / pyunits.kPa**2 |
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.
Is there a reason not to create/declare the parameters for PCF and TCF as model variables as is the usual practice?
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.
Or at least as model parameters? Might there ever be a case where these coefficients would change due to parameter estimation using a new dataset?
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.
Defining them as Param or Var is unnecessary because PCF and TCF are fully derived from other variables through fixed empirical relationships
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.
I have some quick, minor comments and will aim to take another pass after having checked the reference paper(s). However, the main missing piece now is documentation for the unit model. I'd recommend pushing what you have and potentially tagging someone to support on polishing that off.
# Empirical correlation constraints | ||
@self.Constraint(doc="Pressure Correction Factor (El-Dessouky, 1997)") | ||
def eq_PCF(b): | ||
A_PCF = 3e-7 / pyunits.kPa**2 |
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.
Or at least as model parameters? Might there ever be a case where these coefficients would change due to parameter estimation using a new dataset?
Co-authored-by: Adam Atia <[email protected]>
Co-authored-by: Adam Atia <[email protected]>
Co-authored-by: Adam Atia <[email protected]>
Co-authored-by: Adam Atia <[email protected]>
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.
Couple of minor comments on the documentation. I'll leave the more technical feedback to the other reviewers, but I can provide a rubber stamp to push this PR through, if necessary.
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.
LGTM - I agree with @MarcusHolly 's suggestions on the documentation and just think you should make those changes before we merge.
Co-authored-by: Adam Atia <[email protected]>
Co-authored-by: Adam Atia <[email protected]>
It seems like in the latest commit (refine doc), you accidentally undid the changes to spelling out TCF & PCF as well as correcting the degrees of freedom typo. Once this is addressed, I'll approve. |
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.
LGTM - thanks for the quick fixes
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.
LGTM
Fixes/Resolves:
(replace this with the issue # fixed or resolved, if no issue exists then a brief statement of what this PR does)
Summary/Motivation:
Changes proposed in this PR:
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: