18const Real matra_transition_start = std::pow(64.0 / 0.316, 4.0 / 3.0);
19const Real matra_transition_end = 5000.0;
22smoothStep(
const Real
x)
24 return x *
x * (3.0 - 2.0 *
x);
28matraQuadLatticeFrictionFactor(
const Real
Re)
32 else if (
Re < matra_transition_start)
34 else if (
Re < matra_transition_end)
37 smoothStep((
Re - matra_transition_start) / (matra_transition_end - matra_transition_start));
38 const auto laminar_friction = 64.0 /
Re;
39 const auto matra_friction = 0.316 * std::pow(
Re, -0.25);
40 return (1.0 - weight) * laminar_friction +
weight * matra_friction;
43 else if (
Re >= 5000 and
Re < 30000)
44 return 0.316 * std::pow(
Re, -0.25);
45 else if (
Re >= 30000 and
Re < 1000000)
46 return 0.184 * std::pow(
Re, -0.20);
58 "Class that computes the axial friction factor using the MATRA correlation.");
64 _is_quad_lattice(dynamic_cast<const
QuadSubChannelMesh *>(&_subchannel_mesh) != nullptr),
76 ": This closure model applies only for assemblies with bare fuel pins in a square "
83 if (friction_args.
Re >= 1000000)
85 flagInvalidSolution(
"MATRA correlation out of range");
89 return matraQuadLatticeFrictionFactor(friction_args.
Re);
const std::vector< double > x
registerMooseObject("SubChannelApp", SCMFrictionMATRA)
const std::string & name() const
void mooseError(Args &&... args) const
Creates the mesh of subchannels in a quadrilateral lattice.
Base class for friction closures used in SCM.
static InputParameters validParams()
Class that calculates the friction factor based on the MATRA correlation (Numerical study of void dri...
Real computeQuadLatticeFrictionFactor(const FrictionStruct &friction_info) const
bool _is_quad_lattice
Keep track of the lattice type.
SCMFrictionMATRA(const InputParameters ¶meters)
virtual Real computeFrictionFactor(const FrictionStruct &friction_info) const override
Computes the friction factor for the local conditions.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
structure with the needed information to compute the friction factor at a specific subchannel cell