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

ADPressure applies a pressure on a given boundary in the direction defined by component. More...

#include <ADPressure.h>

Inheritance diagram for ADPressure< compute_stage >:
[legend]

Public Member Functions

 ADPressure (const InputParameters &parameters)
 

Protected Member Functions

ADResidual computeQpResidual () override
 

Protected Attributes

const int _component
 displacement component to apply the kernel to More...
 
const Real _alpha
 _alpha Parameter for HHT time integration scheme More...
 
 usingIntegratedBCMembers
 
const Real _constant
 Pressure value constant factor, function factor, and postprocessor factor. More...
 
Function *const _function
 
const PostprocessorValue *const _postprocessor
 

Detailed Description

template<ComputeStage compute_stage>
class ADPressure< compute_stage >

ADPressure applies a pressure on a given boundary in the direction defined by component.

Definition at line 17 of file ADPressure.h.

Constructor & Destructor Documentation

◆ ADPressure()

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

Definition at line 31 of file ADPressure.C.

32  : ADIntegratedBC<compute_stage>(parameters),
33  _component(adGetParam<unsigned int>("component")),
34  _constant(adGetParam<Real>("constant")),
35  _function(isParamValid("function") ? &this->getFunction("function") : nullptr),
36  _postprocessor(isParamValid("postprocessor") ? &this->getPostprocessorValue("postprocessor")
37  : nullptr),
38  _alpha(adGetParam<Real>("alpha"))
39 {
40 }
const Real _alpha
_alpha Parameter for HHT time integration scheme
Definition: ADPressure.h:43
const Real _constant
Pressure value constant factor, function factor, and postprocessor factor.
Definition: ADPressure.h:37
const PostprocessorValue *const _postprocessor
Definition: ADPressure.h:39
const int _component
displacement component to apply the kernel to
Definition: ADPressure.h:34
Function *const _function
Definition: ADPressure.h:38

Member Function Documentation

◆ computeQpResidual()

template<ComputeStage compute_stage>
ADResidual ADPressure< compute_stage >::computeQpResidual ( )
overrideprotected

Definition at line 44 of file ADPressure.C.

45 {
46  ADReal factor = _constant;
47 
48  if (_function)
49  factor *= _function->value(_t + _alpha * _dt, _q_point[_qp]);
50 
51  if (_postprocessor)
52  factor *= *_postprocessor;
53 
54  return factor * (_normals[_qp](_component) * _test[_i][_qp]);
55 }
const Real _alpha
_alpha Parameter for HHT time integration scheme
Definition: ADPressure.h:43
const Real _constant
Pressure value constant factor, function factor, and postprocessor factor.
Definition: ADPressure.h:37
const PostprocessorValue *const _postprocessor
Definition: ADPressure.h:39
const int _component
displacement component to apply the kernel to
Definition: ADPressure.h:34
Function *const _function
Definition: ADPressure.h:38

Member Data Documentation

◆ _alpha

template<ComputeStage compute_stage>
const Real ADPressure< compute_stage >::_alpha
protected

_alpha Parameter for HHT time integration scheme

Definition at line 43 of file ADPressure.h.

◆ _component

template<ComputeStage compute_stage>
const int ADPressure< compute_stage >::_component
protected

displacement component to apply the kernel to

Definition at line 34 of file ADPressure.h.

◆ _constant

template<ComputeStage compute_stage>
const Real ADPressure< compute_stage >::_constant
protected

Pressure value constant factor, function factor, and postprocessor factor.

Definition at line 37 of file ADPressure.h.

◆ _function

template<ComputeStage compute_stage>
Function* const ADPressure< compute_stage >::_function
protected

Definition at line 38 of file ADPressure.h.

◆ _postprocessor

template<ComputeStage compute_stage>
const PostprocessorValue* const ADPressure< compute_stage >::_postprocessor
protected

Definition at line 39 of file ADPressure.h.

◆ usingIntegratedBCMembers

template<ComputeStage compute_stage>
ADPressure< compute_stage >::usingIntegratedBCMembers
protected

Definition at line 45 of file ADPressure.h.


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