#include <iostream>
#include <cmath>
#include "antioch/blottner_viscosity.h"
Go to the source code of this file.
|
template<typename Scalar > |
int | test_viscosity (const Scalar mu, const Scalar mu_exact, const Scalar tol) |
|
template<typename Scalar > |
int | tester () |
|
int | main () |
|
template<typename Scalar >
int test_viscosity |
( |
const Scalar |
mu, |
|
|
const Scalar |
mu_exact, |
|
|
const Scalar |
tol |
|
) |
| |
Definition at line 40 of file blottner_viscosity_unit.C.
Referenced by tester().
46 const double rel_error = abs( (mu - mu_exact)/mu_exact);
50 std::cerr <<
"Error: Mismatch in viscosity" << std::endl
51 <<
"mu(T) = " << mu << std::endl
52 <<
"mu_exact = " << mu_exact << std::endl
53 <<
"rel_error = " << rel_error << std::endl
54 <<
"tol = " << tol << std::endl;
template<typename Scalar >
Definition at line 62 of file blottner_viscosity_unit.C.
References Antioch::BlottnerViscosity< CoeffType >::reset_coeffs(), and test_viscosity().
64 const Scalar a = 3.14e-3;
65 const Scalar b = 2.71e-2;
66 const Scalar c = 42.0e-5;
70 std::cout << mu << std::endl;
72 const Scalar T = 1521.2;
75 const Scalar mu_exact = 0.144422234167703;
79 const Scalar tol = 1.0e-14;
83 const Scalar a2 = 1e-3;
84 const Scalar b2 = 2e-2;
85 const Scalar c2 = 3e-5;
87 mu.reset_coeffs( a2, b2, c2 );
90 const Scalar mu_exact2 = 0.122172495548880;
int test_viscosity(const Scalar mu, const Scalar mu_exact, const Scalar tol)