https://mooseframework.inl.gov
ADHeatStructureHeatSourceRZ.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 
12 registerMooseObject("ThermalHydraulicsApp", ADHeatStructureHeatSourceRZ);
13 
16 {
18  params += RZSymmetry::validParams();
19  params.addClassDescription(
20  "Adds a heat source term in XY coordinates interpreted as cylindrical coordinates");
21  return params;
22 }
23 
25  : ADHeatStructureHeatSource(parameters), RZSymmetry(this, parameters)
26 {
27 }
28 
29 ADReal
31 {
32  const ADReal circumference = computeCircumference(_q_point[_qp]);
33  return circumference * ADHeatStructureHeatSource::computeQpResidual();
34 }
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition: RZSymmetry.h:19
registerMooseObject("ThermalHydraulicsApp", ADHeatStructureHeatSourceRZ)
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
Forcing function used in the heat conduction equation in arbitrary RZ symmetry.
virtual Real computeCircumference(const RealVectorValue &pt)
Definition: RZSymmetry.C:85
static InputParameters validParams()
ADHeatStructureHeatSourceRZ(const InputParameters &parameters)
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Definition: RZSymmetry.C:17
const MooseArray< Point > & _q_point
unsigned int _qp