https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADOneD3EqnEnergyHeatSource.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<MooseFunctorName>("q", "Volumetric heat source");
19 params.addRequiredCoupledVar("A", "Cross sectional area");
20 params.addClassDescription("Computes a volumetric heat source for 1-phase flow channel");
21 return params;
22}
23
25 : ADKernel(parameters), _q(getFunctor<ADReal>("q")), _A(coupledValue("A"))
26{
27}
28
registerMooseObject("ThermalHydraulicsApp", ADOneD3EqnEnergyHeatSource)
DualNumber< Real, DNDerivativeType, true > ADReal
const ADTemplateVariableTestValue< T > & _test
static InputParameters validParams()
Volumetric heat source for 1-phase flow channel.
const Moose::Functor< ADReal > & _q
Heat source function.
ADOneD3EqnEnergyHeatSource(const InputParameters &parameters)
static InputParameters validParams()
const VariableValue & _A
Cross sectional area.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _q_point
const Elem *const & _current_elem
unsigned int _i
const QBase *const & _qrule
StateArg currentState()