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

#include <ADGravity.h>

Inheritance diagram for ADGravity< compute_stage >:
[legend]

Public Member Functions

 ADGravity (const InputParameters &parameters)
 

Protected Member Functions

ADResidual precomputeQpResidual () override
 

Private Member Functions

const ADMaterialProperty (Real) &_density
 

Private Attributes

const Real _value
 
const Real _alpha
 
 usingKernelValueMembers
 

Detailed Description

template<ComputeStage compute_stage>
class ADGravity< compute_stage >

Definition at line 16 of file ADGravity.h.

Constructor & Destructor Documentation

◆ ADGravity()

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

Definition at line 29 of file ADGravity.C.

30  : ADKernelValue<compute_stage>(parameters),
31  _density(adGetADMaterialProperty<Real>("density")),
32  _value(adGetParam<Real>("value")),
33  _alpha(adGetParam<Real>("alpha"))
34 {
35 }
const Real _value
Definition: ADGravity.h:32
const Real _alpha
Definition: ADGravity.h:35

Member Function Documentation

◆ ADMaterialProperty()

template<ComputeStage compute_stage>
const ADGravity< compute_stage >::ADMaterialProperty ( Real  ) &
private

◆ precomputeQpResidual()

template<ComputeStage compute_stage>
ADResidual ADGravity< compute_stage >::precomputeQpResidual ( )
overrideprotected

Definition at line 39 of file ADGravity.C.

40 {
41  return -_density[_qp] * _value;
42 }
const Real _value
Definition: ADGravity.h:32

Member Data Documentation

◆ _alpha

template<ComputeStage compute_stage>
const Real ADGravity< compute_stage >::_alpha
private

Definition at line 35 of file ADGravity.h.

◆ _value

template<ComputeStage compute_stage>
const Real ADGravity< compute_stage >::_value
private

Definition at line 32 of file ADGravity.h.

◆ usingKernelValueMembers

template<ComputeStage compute_stage>
ADGravity< compute_stage >::usingKernelValueMembers
private

Definition at line 37 of file ADGravity.h.


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