diff --git a/include/teqp/models/saft/polar_terms.hpp b/include/teqp/models/saft/polar_terms.hpp index 237fc6df..a018d36a 100644 --- a/include/teqp/models/saft/polar_terms.hpp +++ b/include/teqp/models/saft/polar_terms.hpp @@ -934,6 +934,9 @@ class MultipolarContributionGrayGubbins { // The packing fraction is defined by eta = pi/6*rho^*, so use the (temperature-dependent) eta to obtain rho^* rhostar = forceeval(packing_fraction/(static_cast(EIGEN_PI)/6.0)); } + else{ + throw teqp::InvalidArgument("The method used to determine rho^* is invalid"); + } return rhostar; }