Skip to content

Commit

Permalink
s^+ for Mie n-6 seems to be fine...
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jul 21, 2024
1 parent 6d1f6ae commit 3da4424
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/tests/catch_test_LJmodels.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ TEST_CASE("Test virial coefficients", "[Mien6virial]")
fix.test_virial(3, Tspec, rhotest, 1e-6);
}

TEST_CASE("Test s^+ ", "[Mien6]")
{
// Also test virial coefficients
auto z = (Eigen::ArrayXd(1) << 1.0).finished();
auto model = make_model({ {"kind", "Mie_Pohl2023"}, {"model", {{"lambda_r", 12}}} });
double rho = 0.31;
auto rhovec = (Eigen::ArrayXd(1) << rho).finished();
auto splus = model->get_splus(1.32, rhovec);
auto splus_normal = model->get_Ar00(1.32, rho, z)-model->get_Ar10(1.32, rho, z);
CHECK(splus == splus_normal);
}


TEST_CASE("Test LJChain models", "[LJChain]"){
auto Johnson = LJ126Johnson1993();
auto m1 = LJChain::LJChain(std::move(Johnson), 1);
Expand Down

0 comments on commit 3da4424

Please sign in to comment.