-
Notifications
You must be signed in to change notification settings - Fork 69
Enabling to pass surface composition for B' calculation #279
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
base: master
Are you sure you want to change the base?
Conversation
mgoodson-cvd
left a comment
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 haven't tested this yet, but just from looking at the code, I don't see any reason it shouldn't work.
| double* const hw, double *const p_Xs) | ||
| { | ||
| p_mix->surfaceMassBalance(p_Yke, p_Ykg, *T, *P, *Bg, *Bc, *hw, p_Xs); | ||
| const int ne = p_mix->nElements(); |
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.
Why leave the Fortran interface unchanged? Why not update it at the same time? Could preserve the old behavior with additional function, e.g., surface_mass_balance_char function.
| * bprime \f$-T\f$ \f$T_1\f$:\f$\Delta T\f$:\f$T_2\f$ \f$-p\f | ||
| * \f$p\f$ \f$-b\f \f$B'_g\f$ \f$-m\f mixture \f$-bl\f BL \f$-py \f Pyrolysis | ||
| * | ||
| * \f$-cp \f CondencedPhase |
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.
Spelling: Condenced -> condensed throughout.
| Bc = (p_Yke[ic] + Bg*p_Ykg[ic] - ywc*(1.0 + Bg)) / (ywc - 1.0); | ||
| Bc = std::max(Bc, 0.0); | ||
| Bc = (Bg*(sum_Yg - sum_Yw) + sum_Ye - sum_Yw)/(sum_Yw - sum_YCp); | ||
| Bc = std::max(Bc, 1.0e-8); |
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.
Why the new floor of 1e-8?
| void surfaceMassBalance( | ||
| const double *const p_Yke, const double *const p_Ykg, const double T, | ||
| const double P, const double Bg, double &Bc, double &hw, | ||
| const double *const p_Yke, const double *const p_Ykg, const double *const p_Ycp, |
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.
This is a breaking change to the API; the version number of Mutation++ should be updated to reflect this, from 1.1.3 to 1.2, or even 2.0 (if we are following semantic versioning).
No description provided.