https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
TestNavierStokesMethods.C File Reference

Go to the source code of this file.

Functions

 TEST (NavierStokesMethodsTest, findYplusThermalSatisfiesMatchingCondition)
 

Function Documentation

◆ TEST()

TEST ( NavierStokesMethodsTest  ,
findYplusThermalSatisfiesMatchingCondition   
)

Definition at line 29 of file TestNavierStokesMethods.C.

30{
31 // A range of molecular-to-turbulent Prandtl number combinations spanning liquids
32 // (Pr >> 1), gases (Pr ~ 1), and liquid metals (Pr << 1).
33 const std::vector<std::pair<Real, Real>> cases = {
34 {0.7, 0.9}, {1.0, 0.85}, {7.0, 0.9}, {50.0, 1.0}, {0.01, 0.9}, {0.1, 0.7}};
35
36 for (const auto & [Pr, Pr_t] : cases)
37 {
38 const auto y_plus_thermal = NS::findYplusThermal<Real>(Pr, Pr_t);
39 EXPECT_GT(y_plus_thermal, 0.0);
40 EXPECT_NEAR(thermalMatchResidual(y_plus_thermal, Pr, Pr_t), 0.0, 1e-2 * Pr_t);
41 }
42}
template Real findYplusThermal< Real >(const Real &Pr, const Real &Pr_t)