https://mooseframework.inl.gov
WallFrictionModelsTest.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "gtest/gtest.h"
11 #include "WallFrictionModels.h"
12 #include "THMTestUtils.h"
13 
14 TEST(WallFrictionModelsTest, darcy_friction_factor)
15 {
16  ABS_TEST(WallFriction::DarcyFrictionFactor(5.), 20., 1e-13);
17 }
18 
19 TEST(WallFrictionModelsTest, fanning_friction_factor_churchill)
20 {
21  // Re < 10
22  ABS_TEST(WallFriction::FanningFrictionFactorChurchill(1, 1e-5, 2e-2), 1.6, 1e-13);
23  // Re > 10
24  ABS_TEST(WallFriction::FanningFrictionFactorChurchill(100, 1e-5, 2e-2), 0.16, 1e-13);
25 }
Real DarcyFrictionFactor(const Real &f_F)
Computes Darcy friction factor from Fanning friction factor.
Real FanningFrictionFactorChurchill(Real Re, Real roughness, Real D_h)
Computes Fanning friction factor using Churchill correlation.
TEST(WallFrictionModelsTest, darcy_friction_factor)