https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
36void
registerMooseObject("ThermalHydraulicsTestApp", ADFanningFrictionFactorMaterial)
Computes Fanning friction factor from Darcy friction factor.
ADMaterialProperty< Real > & _f_F
Fanning friction factor.
const ADMaterialProperty< Real > & _f_D
Darcy friction factor.
ADFanningFrictionFactorMaterial(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()