https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
39void
registerMooseObject("ThermalHydraulicsApp", ADWallFrictionFunctionMaterial)
Converts Darcy friction factor function into material property.
ADWallFrictionFunctionMaterial(const InputParameters &parameters)
virtual Real value(Real t, const Point &p) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
const MooseArray< Point > & _q_point
Real & _t