www.mooseframework.org
Public Member Functions | Static 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)
 

Static Public Member Functions

static InputParameters validParams ()
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Private Attributes

const PostprocessorValue *const _postprocessor
 
const 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 28 of file OutOfPlanePressure.h.

Constructor & Destructor Documentation

◆ OutOfPlanePressure()

OutOfPlanePressure::OutOfPlanePressure ( const InputParameters &  parameters)

Definition at line 33 of file OutOfPlanePressure.C.

34  : Kernel(parameters),
36  parameters.isParamValid("postprocessor") ? &getPostprocessorValue("postprocessor") : NULL),
37  _function(getFunction("function")),
38  _factor(getParam<Real>("factor"))
39 {
40 }

Member Function Documentation

◆ computeQpResidual()

Real OutOfPlanePressure::computeQpResidual ( )
protectedvirtual

Definition at line 43 of file OutOfPlanePressure.C.

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

◆ validParams()

InputParameters OutOfPlanePressure::validParams ( )
static

Definition at line 18 of file OutOfPlanePressure.C.

19 {
20  InputParameters params = Kernel::validParams();
21 
22  params.addClassDescription("Apply pressure in the out-of-plane direction in 2D plane stress or "
23  "generalized plane strain models ");
24  params.addParam<FunctionName>("function", "1.0", "Function used to prescribe pressure");
25  params.addParam<PostprocessorName>("postprocessor", "Postprocessor used to prescribe pressure");
26  params.addParam<Real>("factor", 1.0, "Scale factor applied to prescribed pressure");
27 
28  params.set<bool>("use_displaced_mesh") = true;
29 
30  return params;
31 }

Member Data Documentation

◆ _factor

const Real OutOfPlanePressure::_factor
private

Definition at line 41 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().

◆ _function

const Function& OutOfPlanePressure::_function
private

Definition at line 40 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().

◆ _postprocessor

const PostprocessorValue* const OutOfPlanePressure::_postprocessor
private

Definition at line 39 of file OutOfPlanePressure.h.

Referenced by computeQpResidual().


The documentation for this class was generated from the following files:
OutOfPlanePressure::_function
const Function & _function
Definition: OutOfPlanePressure.h:40
OutOfPlanePressure::_postprocessor
const PostprocessorValue *const _postprocessor
Definition: OutOfPlanePressure.h:39
validParams
InputParameters validParams()
OutOfPlanePressure::_factor
const Real _factor
Definition: OutOfPlanePressure.h:41