Skip to content
Snippets Groups Projects
Commit f81186f1 authored by Ian Bell's avatar Ian Bell
Browse files

Update tests for cubics

parent 85352e4d
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,13 @@ TEST_CASE("Test construction of cubic", "[cubic]") ...@@ -12,10 +12,13 @@ TEST_CASE("Test construction of cubic", "[cubic]")
auto modelSRK = canonical_SRK(Tc_K, pc_Pa, acentric); auto modelSRK = canonical_SRK(Tc_K, pc_Pa, acentric);
auto modelPR = canonical_PR(Tc_K, pc_Pa, acentric); auto modelPR = canonical_PR(Tc_K, pc_Pa, acentric);
double T = 300, rho = 300; double T = 800, rho = 5000;
Eigen::ArrayXd molefrac(2); molefrac = 0.5; auto molefrac = (Eigen::ArrayXd(3) << 0.5, 0.3, 0.2).finished();
auto Ar02SRK = TDXDerivatives<decltype(modelSRK)>::get_Ar02(modelSRK, T, rho, molefrac); auto Ar02SRK = TDXDerivatives<decltype(modelSRK)>::get_Ar02(modelSRK, T, rho, molefrac);
auto Ar01PR = TDXDerivatives<decltype(modelPR)>::get_Ar01(modelPR, T, rho, molefrac);
auto Ar02PR = TDXDerivatives<decltype(modelPR)>::get_Ar02(modelPR, T, rho, molefrac); auto Ar02PR = TDXDerivatives<decltype(modelPR)>::get_Ar02(modelPR, T, rho, molefrac);
auto Ar03PR = TDXDerivatives<decltype(modelPR)>::get_Ar0n<3>(modelPR, T, rho, molefrac)[3];
auto Ar04PR = TDXDerivatives<decltype(modelPR)>::get_Ar0n<4>(modelPR, T, rho, molefrac)[4];
int rr = 0; int rr = 0;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment