41 template <
typename Scalar>
42 int test_viscosity(
const Scalar mu,
const Scalar mu_exact,
const Scalar tol )
48 const Scalar rel_error = abs( (mu - mu_exact)/mu_exact);
52 std::cerr <<
"Error: Mismatch in viscosity" << std::endl
53 <<
"mu(T) = " << mu << std::endl
54 <<
"mu_exact = " << mu_exact << std::endl
55 <<
"rel_error = " << rel_error << std::endl
56 <<
"tol = " << tol << std::endl;
64 template <
typename Scalar>
67 const Scalar mu_ref = 1.0e-3L;
68 const Scalar T_ref = 300.0L;
72 std::cout << mu << std::endl;
74 const Scalar T = 1521.2L;
77 const Scalar mu_exact = .0325778060534850406481862157435995107036L;
81 const Scalar tol = std::numeric_limits<Scalar>::epsilon() * 10;
85 const Scalar mu_ref2 = 3.14159e-3L;
86 const Scalar T_ref2 = 420.42L;
91 const Scalar mu_exact2 = .0959985656417205050367745642313443587197L;
101 return (tester<double>() ||
102 tester<long double>() ||
int test_viscosity(const Scalar mu, const Scalar mu_exact, const Scalar tol)
void reset_coeffs(const CoeffType mu_ref, const CoeffType T_ref)