www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OutOfPlanePressure Class Reference

OutOfPlanePressure is a kernel used to apply pressure in the out-of-plane direction in 2D plane stress or generalized plane strain models. More...

#include <OutOfPlanePressure.h>

Inheritance diagram for OutOfPlanePressure:
[legend]

Public Member Functions

 OutOfPlanePressure (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Private Attributes

const PostprocessorValue *const _postprocessor
 
Function & _function
 
const Real _factor
 

Detailed Description

OutOfPlanePressure is a kernel used to apply pressure in the out-of-plane direction in 2D plane stress or generalized plane strain models.

Following the convention of the standard Pressure boundary condition, positive pressures are applied inward into the surface.

Definition at line 29 of file OutOfPlanePressure.h.

Constructor & Destructor Documentation

◆ OutOfPlanePressure()

OutOfPlanePressure::OutOfPlanePressure ( const InputParameters &  parameters)

Definition at line 32 of file OutOfPlanePressure.C.

33  : Kernel(parameters),
35  parameters.isParamValid("postprocessor") ? &getPostprocessorValue("postprocessor") : NULL),
36  _function(getFunction("function")),
37  _factor(getParam<Real>("factor"))
38 {
39 }
const PostprocessorValue *const _postprocessor

Member Function Documentation

◆ computeQpResidual()

Real OutOfPlanePressure::computeQpResidual ( )
protectedvirtual

Definition at line 42 of file OutOfPlanePressure.C.

43 {
44  Real val = _factor;
45 
46  val *= _function.value(_t, _q_point[_qp]);
47 
48  if (_postprocessor)
49  val *= *_postprocessor;
50 
51  return val * _test[_i][_qp];
52 }
const PostprocessorValue *const _postprocessor

Member Data Documentation

◆ _factor

const Real OutOfPlanePressure::_factor
private

Definition at line 40 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().

◆ _function

Function& OutOfPlanePressure::_function
private

Definition at line 39 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().

◆ _postprocessor

const PostprocessorValue* const OutOfPlanePressure::_postprocessor
private

Definition at line 38 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().


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