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

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

#include <Pressure.h>

Inheritance diagram for Pressure:
[legend]

Public Member Functions

 Pressure (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const int _component
 
const Real _factor
 
Function *const _function
 
const PostprocessorValue *const _postprocessor
 
const Real _alpha
 _alpha Parameter for HHT time integration scheme More...
 

Detailed Description

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

Definition at line 21 of file Pressure.h.

Constructor & Destructor Documentation

Pressure::Pressure ( const InputParameters &  parameters)

Definition at line 27 of file Pressure.C.

28  : IntegratedBC(parameters),
29  _component(getParam<unsigned int>("component")),
30  _factor(getParam<Real>("factor")),
31  _function(isParamValid("function") ? &getFunction("function") : NULL),
32  _postprocessor(isParamValid("postprocessor") ? &getPostprocessorValue("postprocessor") : NULL),
33  _alpha(getParam<Real>("alpha"))
34 {
35  if (_component > 2)
36  mooseError("Invalid component given for ", name(), ": ", _component, ".\n");
37 }
const Real _factor
Definition: Pressure.h:31
const int _component
Definition: Pressure.h:29
const Real _alpha
_alpha Parameter for HHT time integration scheme
Definition: Pressure.h:38
Function *const _function
Definition: Pressure.h:33
const PostprocessorValue *const _postprocessor
Definition: Pressure.h:35

Member Function Documentation

Real Pressure::computeQpResidual ( )
protectedvirtual

Definition at line 40 of file Pressure.C.

41 {
42  Real factor = _factor;
43 
44  if (_function)
45  factor *= _function->value(_t + _alpha * _dt, _q_point[_qp]);
46 
47  if (_postprocessor)
48  factor *= *_postprocessor;
49 
50  return factor * (_normals[_qp](_component) * _test[_i][_qp]);
51 }
const Real _factor
Definition: Pressure.h:31
const int _component
Definition: Pressure.h:29
const Real _alpha
_alpha Parameter for HHT time integration scheme
Definition: Pressure.h:38
Function *const _function
Definition: Pressure.h:33
const PostprocessorValue *const _postprocessor
Definition: Pressure.h:35

Member Data Documentation

const Real Pressure::_alpha
protected

_alpha Parameter for HHT time integration scheme

Definition at line 38 of file Pressure.h.

Referenced by computeQpResidual().

const int Pressure::_component
protected

Definition at line 29 of file Pressure.h.

Referenced by computeQpResidual(), and Pressure().

const Real Pressure::_factor
protected

Definition at line 31 of file Pressure.h.

Referenced by computeQpResidual().

Function* const Pressure::_function
protected

Definition at line 33 of file Pressure.h.

Referenced by computeQpResidual().

const PostprocessorValue* const Pressure::_postprocessor
protected

Definition at line 35 of file Pressure.h.

Referenced by computeQpResidual().


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