https://mooseframework.inl.gov
Loading...
Searching...
No Matches
thermal_hydraulics
unit
src
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
}
THMTestUtils.h
TEST
TEST(WallFrictionModelsTest, darcy_friction_factor)
Definition
WallFrictionModelsTest.C:14
WallFrictionModels.h
WallFriction::DarcyFrictionFactor
Real DarcyFrictionFactor(const Real &f_F)
Computes Darcy friction factor from Fanning friction factor.
Definition
WallFrictionModels.C:18
WallFriction::FanningFrictionFactorChurchill
Real FanningFrictionFactorChurchill(Real Re, Real roughness, Real D_h)
Computes Fanning friction factor using Churchill correlation.
Definition
WallFrictionModels.C:30
Generated on Fri Aug 21 2026 13:42:03 for https://mooseframework.inl.gov by
1.9.8