|
libMesh::UniquePtr< GetPot > | _input |
|
GRINSTesting::AntiochConstantTransportMixtureBuilderTest::CPPUNIT_TEST_SUITE_END |
( |
| ) |
|
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::setUp |
( |
| ) |
|
|
inline |
Definition at line 149 of file antioch_mixture_builder_test.C.
References _input.
151 std::string input_file = std::string(GRINS_TEST_SRCDIR)+
"/input_files/antioch.in";
152 _input.reset(
new GetPot(input_file) );
libMesh::UniquePtr< GetPot > _input
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_cea_constcond_mix |
( |
| ) |
|
|
inline |
Definition at line 214 of file antioch_mixture_builder_test.C.
References _input, and GRINS::AntiochConstantTransportMixtureBuilder::build_mixture().
218 libMesh::UniquePtr<GRINS::AntiochConstantTransportMixture<Antioch::CEACurveFit<libMesh::Real>,
221 (*
_input,
"TestMaterial");
223 libMesh::Real mu = mixture->mu();
224 libMesh::Real k = (mixture->conductivity())();
226 libMesh::Real rho = 1.2;
227 libMesh::Real cp = 2.3;
229 libMesh::Real Le = 1.4;
231 libMesh::Real D = mixture->diffusivity().D(rho,cp,k);
233 libMesh::Real D_exact = k/rho/cp/Le;
235 CPPUNIT_ASSERT_DOUBLES_EQUAL( 3.14, mu, std::numeric_limits<libMesh::Real>::epsilon() );
236 CPPUNIT_ASSERT_DOUBLES_EQUAL( 2.71, k, std::numeric_limits<libMesh::Real>::epsilon() );
237 CPPUNIT_ASSERT_DOUBLES_EQUAL( D_exact, D, std::numeric_limits<libMesh::Real>::epsilon() );
libMesh::UniquePtr< AntiochConstantTransportMixture< KineticsThermoCurveFit, Conductivity > > build_mixture(const GetPot &input, const std::string &material)
libMesh::UniquePtr< GetPot > _input
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_cea_constpr_mix |
( |
| ) |
|
|
inline |
Definition at line 240 of file antioch_mixture_builder_test.C.
References _input, and GRINS::AntiochConstantTransportMixtureBuilder::build_mixture().
244 libMesh::UniquePtr<GRINS::AntiochConstantTransportMixture<Antioch::CEACurveFit<libMesh::Real>,
247 (*
_input,
"TestMaterial");
249 libMesh::Real mu = mixture->mu();
250 libMesh::Real cp = 2.3;
251 libMesh::Real Pr = 0.7;
252 libMesh::Real k = (mixture->conductivity())(mu, cp);
253 libMesh::Real k_exact = mu*cp/Pr;
255 libMesh::Real rho = 1.2;
257 libMesh::Real Le = 1.4;
259 libMesh::Real D = mixture->diffusivity().D(rho,cp,k);
261 libMesh::Real D_exact = k/rho/cp/Le;
263 CPPUNIT_ASSERT_DOUBLES_EQUAL( 3.14, mu, std::numeric_limits<libMesh::Real>::epsilon() );
264 CPPUNIT_ASSERT_DOUBLES_EQUAL( k_exact, k, std::numeric_limits<libMesh::Real>::epsilon() );
265 CPPUNIT_ASSERT_DOUBLES_EQUAL( D_exact, D, std::numeric_limits<libMesh::Real>::epsilon() );
libMesh::UniquePtr< AntiochConstantTransportMixture< KineticsThermoCurveFit, Conductivity > > build_mixture(const GetPot &input, const std::string &material)
libMesh::UniquePtr< GetPot > _input
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_constant_conductivity |
( |
| ) |
|
|
inline |
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_constant_lewis_diff |
( |
| ) |
|
|
inline |
Definition at line 195 of file antioch_mixture_builder_test.C.
References _input, and GRINS::AntiochConstantTransportMixtureBuilder::build_constant_lewis_diff().
199 libMesh::UniquePtr<Antioch::ConstantLewisDiffusivity<libMesh::Real> > diff =
202 libMesh::Real rho = 1.2;
203 libMesh::Real cp = 2.3;
204 libMesh::Real k = 3.4;
205 libMesh::Real Le = 1.4;
207 libMesh::Real D = diff->D(rho,cp,k);
209 libMesh::Real D_exact = k/rho/cp/Le;
211 CPPUNIT_ASSERT_DOUBLES_EQUAL( D_exact, D, std::numeric_limits<libMesh::Real>::epsilon() );
libMesh::UniquePtr< Antioch::ConstantLewisDiffusivity< libMesh::Real > > build_constant_lewis_diff(const GetPot &input, const std::string &material)
libMesh::UniquePtr< GetPot > _input
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_constant_prandtl_conductivity |
( |
| ) |
|
|
inline |
Definition at line 179 of file antioch_mixture_builder_test.C.
References _input, and GRINS::AntiochConstantTransportMixtureBuilder::build_constant_conductivity().
183 libMesh::UniquePtr<GRINS::ConstantPrandtlConductivity> conductivity =
186 libMesh::Real mu = 1.2;
187 libMesh::Real cp = 2.3;
188 libMesh::Real Pr = 0.7;
189 libMesh::Real k = (*conductivity)( mu, cp );
190 libMesh::Real k_exact = mu*cp/Pr;
192 CPPUNIT_ASSERT_DOUBLES_EQUAL( k_exact, k, std::numeric_limits<libMesh::Real>::epsilon() );
libMesh::UniquePtr< Conductivity > build_constant_conductivity(const GetPot &input, const std::string &material)
libMesh::UniquePtr< GetPot > _input
void GRINSTesting::AntiochConstantTransportMixtureBuilderTest::test_build_constant_viscosity |
( |
| ) |
|
|
inline |
libMesh::UniquePtr<GetPot> GRINSTesting::AntiochConstantTransportMixtureBuilderTest::_input |
|
private |
The documentation for this class was generated from the following file: