https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADHeatFluxFromHeatStructure3EqnUserObject.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 params.addRequiredParam<MaterialPropertyName>("T_wall", "Wall temperature");
19 params.addRequiredParam<MaterialPropertyName>("T", "Fluid temperature");
20 params.addRequiredParam<MaterialPropertyName>("Hw", "Convective heat transfer coefficient");
21 params.addParam<MooseFunctorName>("scale", 1.0, "Functor by which to scale the heat flux");
23 "Cache the heat flux between a single phase flow channel and a heat structure");
24 return params;
25}
26
28 const InputParameters & parameters)
30 _T_wall(getADMaterialProperty<Real>("T_wall")),
31 _Hw(getADMaterialProperty<Real>("Hw")),
32 _T(getADMaterialProperty<Real>("T")),
33 _scale(getFunctor<ADReal>("scale"))
34{
35}
36
registerMooseObject("ThermalHydraulicsApp", ADHeatFluxFromHeatStructure3EqnUserObject)
DualNumber< Real, DNDerivativeType, true > ADReal
Cache the heat flux between a single phase flow channel and a heat structure.
ADHeatFluxFromHeatStructure3EqnUserObject(const InputParameters &parameters)
const Moose::Functor< ADReal > & _scale
Functor by which to scale the heat flux.
Base class for caching heat flux between a flow channel and a heat structure.
unsigned int _qp
Flow channel quadrature point index.
const QBase *const & _qrule
const Elem *const & _current_elem
const MooseArray< Point > & _q_point
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
StateArg currentState()