12 #include "MooseError.h"
22 params.addClassDescription(
"Applies a pressure on a given boundary in a given direction");
23 params.addRequiredParam<
unsigned int>(
"component",
"The component for the pressure");
24 params.addParam<Real>(
"factor", 1.0,
"The magnitude to use in computing the pressure");
25 params.addParam<FunctionName>(
"function",
"The function that describes the pressure");
26 params.addParam<PostprocessorName>(
"postprocessor",
27 "Postprocessor that will supply the pressure value");
28 params.addParam<Real>(
"alpha", 0.0,
"alpha parameter required for HHT time integration scheme");
29 params.set<
bool>(
"use_displaced_mesh") =
true;
34 : IntegratedBC(parameters),
35 _component(getParam<unsigned int>(
"component")),
36 _factor(getParam<Real>(
"factor")),
37 _function(isParamValid(
"function") ? &getFunction(
"function") : NULL),
38 _postprocessor(isParamValid(
"postprocessor") ? &getPostprocessorValue(
"postprocessor") : NULL),
39 _alpha(getParam<Real>(
"alpha"))
42 mooseError(
"Invalid component given for ",
name(),
": ",
_component,
".\n");
56 return factor * (_normals[_qp](
_component) * _test[_i][_qp]);