www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADMatHeatSource< compute_stage > Class Template Reference

#include <ADMatHeatSource.h>

Inheritance diagram for ADMatHeatSource< compute_stage >:
[legend]

Public Member Functions

 ADMatHeatSource (const InputParameters &parameters)
 

Protected Member Functions

virtual ADResidual computeQpResidual ()
 
const ADMaterialProperty (Real) &_material_property
 

Protected Attributes

const Real _scalar
 
 usingKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADMatHeatSource< compute_stage >

Definition at line 15 of file ADMatHeatSource.h.

Constructor & Destructor Documentation

◆ ADMatHeatSource()

template<ComputeStage compute_stage>
ADMatHeatSource< compute_stage >::ADMatHeatSource ( const InputParameters &  parameters)

Definition at line 22 of file ADMatHeatSource.C.

23  : ADKernel<compute_stage>(parameters),
24  _scalar(adGetParam<Real>("scalar")),
25  _material_property(adGetADMaterialProperty<Real>("material_property"))
26 {
27 }
const Real _scalar

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage>
const ADMatHeatSource< compute_stage >::ADMaterialProperty ( Real  ) &
protected

◆ computeQpResidual()

template<ComputeStage compute_stage>
ADResidual ADMatHeatSource< compute_stage >::computeQpResidual ( )
protectedvirtual

Definition at line 31 of file ADMatHeatSource.C.

32 {
33  return -_scalar * _material_property[_qp] * _test[_i][_qp];
34 }
const Real _scalar

Member Data Documentation

◆ _scalar

template<ComputeStage compute_stage>
const Real ADMatHeatSource< compute_stage >::_scalar
protected

Definition at line 28 of file ADMatHeatSource.h.

◆ usingKernelMembers

template<ComputeStage compute_stage>
ADMatHeatSource< compute_stage >::usingKernelMembers
protected

Definition at line 31 of file ADMatHeatSource.h.


The documentation for this class was generated from the following files: