Skip to content

Commit

Permalink
Modifying comments and reference for cubic solver
Browse files Browse the repository at this point in the history
  • Loading branch information
gkogekar committed Sep 4, 2019
1 parent a29dc00 commit 4e8111d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/cantera/thermo/PengRobinsonMFTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class PengRobinsonMFTP : public MixtureFugacityTP
* Returns the number of solutions found. If it only finds the liquid
* branch solution, it will return a -1 or a -2 instead of 1 or 2. If it
* returns 0, then there is an error.
* The cubic equation is solved using Nickall's method (http://www.nickalls.org/dick/papers/maths/cubic1993.pdf)
* The cubic equation is solved using Nickall's method (Ref: The Mathematical Gazette(1993), 77(November), 354–359, https://www.jstor.org/stable/3619777)
*/
int NicholsSolve(double TKelvin, double pres, double a, double b, double aAlpha,
double Vroot[3]) const;
Expand All @@ -366,6 +366,7 @@ class PengRobinsonMFTP : public MixtureFugacityTP
double m_a_current;
double m_aAlpha_current;

// Vectors required to store a_coeff, b_coeff, alpha, kappa and other values for every species. Length = m_kk
vector_fp a_vec_Curr_;
vector_fp b_vec_Curr_;
vector_fp aAlpha_vec_Curr_;
Expand Down

0 comments on commit 4e8111d

Please sign in to comment.