17 auto z = (Eigen::ArrayXd(2) << 0.5, 0.5).finished();
19 double Ar01 = model->get_Arxy(0, 1, 300, 3, z);
21 SECTION(
"critical trace") {
22 double Tc1 = modelnovar.redfunc.Tc(0);
23 auto rhovec0 = (Eigen::ArrayXd(2) << 1/modelnovar.redfunc.vc(0), 0).finished();
24 auto cr = model->trace_critical_arclength_binary(Tc1, rhovec0);
25 std::cout << cr.dump(1) << std::endl;
32 auto z = (Eigen::ArrayXd(2) << 0.5, 0.5).finished();
36 auto z1 = (Eigen::ArrayXd(1) << 1).finished();
38 BENCHMARK(
"Ar01 two components") {
39 return model->get_Arxy(0, 1, 300, 3, z);
41 BENCHMARK(
"Ar01 one component w/ Arxy (C++ interface, runtime lookup)") {
42 return model->get_Arxy(0, 1, 300, 3, z1);
44 BENCHMARK(
"Ar01 one component w/ Ar01 directly") {
45 return TDXDerivatives<
decltype(model1novar)>::get_Arxy<0,1,ADBackends::autodiff>(model1novar, 300, 3, z1);
std::unique_ptr< AbstractModel > make_multifluid_model(const std::vector< std::string > &components, const std::string &coolprop_root, const std::string &BIPcollectionpath={}, const nlohmann::json &flags={}, const std::string &departurepath={})
auto build_multifluid_model(const std::vector< std::string > &components, const std::string &root, const std::string &BIPcollectionpath={}, const nlohmann::json &flags={}, const std::string &departurepath={})