https://mooseframework.inl.gov
ADFanningFrictionFactorMaterial.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 
11 
12 registerMooseObject("ThermalHydraulicsTestApp", ADFanningFrictionFactorMaterial);
13 
16 {
18 
19  params.addRequiredParam<MaterialPropertyName>(
20  "f_F", "Name to give Fanning friction factor material property");
21  params.addRequiredParam<MaterialPropertyName>("f_D", "Darcy friction factor material property");
22 
23  params.addClassDescription("Computes Fanning friction factor from Darcy friction factor");
24 
25  return params;
26 }
27 
29  : Material(parameters),
30 
31  _f_D(getADMaterialProperty<Real>("f_D")),
32  _f_F(declareADProperty<Real>(getParam<MaterialPropertyName>("f_F")))
33 {
34 }
35 
36 void
38 {
39  _f_F[_qp] = 0.25 * _f_D[_qp];
40 }
ADMaterialProperty< Real > & _f_F
Fanning friction factor.
registerMooseObject("ThermalHydraulicsTestApp", ADFanningFrictionFactorMaterial)
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
ADFanningFrictionFactorMaterial(const InputParameters &parameters)
Computes Fanning friction factor from Darcy friction factor.
const ADMaterialProperty< Real > & _f_D
Darcy friction factor.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)