https://mooseframework.inl.gov
ADWallFrictionFunctionMaterial.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 #include "Function.h"
12 
14 
17 {
19  params.addClassDescription("Defines a Darcy friction factor equal to the value of the function "
20  "at the local coordinates and time");
21 
22  params.addRequiredParam<MaterialPropertyName>("f_D", "Darcy friction factor material property");
23 
24  params.addRequiredParam<FunctionName>("function", "Darcy friction factor function");
25 
26  return params;
27 }
28 
30  : Material(parameters),
31 
32  _function(getFunction("function")),
33 
34  _f_D_name(getParam<MaterialPropertyName>("f_D")),
35  _f_D(declareADProperty<Real>(_f_D_name))
36 {
37 }
38 
39 void
41 {
43 }
const MooseArray< Point > & _q_point
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
Converts Darcy friction factor function into material property.
static InputParameters validParams()
Real & _t
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("ThermalHydraulicsApp", ADWallFrictionFunctionMaterial)
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
ADWallFrictionFunctionMaterial(const InputParameters &parameters)