10 #include "gtest/gtest.h" 16 EXPECT_NEAR(
fp::reynolds(998., 2.5, 1e-4, 8.9e-4), 280.3370786516856, 1e-12);
22 EXPECT_NEAR(
fp::prandtl(4184., 8.9e-4, 1.0020), 3.71632734530938, 1e-12);
27 EXPECT_EQ(
fp::grashof(1., 1., 2., 1., 1., 1., 1.), 1.);
28 EXPECT_NEAR(
fp::grashof(0.000214, 2.5, 0, 2.234, 998., 8.9e-4, 9.81), 73578912563.777863, 1e-12);
34 EXPECT_NEAR(
fp::laplace(72.8e-3, 998., 2.234, 8.9e-4), 204910907.20868585, 1e-12);
46 EXPECT_NEAR(
fp::peclet(10., 0.014, 1.5), 0.09333333333333334, 1e-12);
Real thermalDiffusivity(Real k, Real rho, Real cp)
Compute thermal diffusivity.
Real peclet(Real vel, Real L, Real diffusivity)
Compute Peclet number.
TEST(DimensionlessFlowNumbersTest, reynolds)
Real reynolds(Real rho, Real vel, Real L, Real mu)
Compute Reynolds number.
Real laplace(Real sigma, Real rho, Real L, Real mu)
Compute Laplace number.
static const std::string thermal_diffusivity
Real grashof(Real beta, Real T_s, Real T_bulk, Real L, Real rho, Real mu, Real gravity_magnitude)
Compute Grashof number.
Real prandtl(Real cp, Real mu, Real k)
Compute Prandtl number.