Pressure applies a pressure on a given boundary in the direction defined by component.
More...
#include <Pressure.h>
|
| Pressure (const InputParameters ¶meters) |
|
Pressure applies a pressure on a given boundary in the direction defined by component.
Definition at line 23 of file Pressure.h.
◆ Pressure()
Pressure::Pressure |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 33 of file Pressure.C.
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");
◆ computeQpResidual()
Real Pressure::computeQpResidual |
( |
| ) |
|
|
protectedvirtual |
◆ validParams()
InputParameters Pressure::validParams |
( |
| ) |
|
|
static |
Definition at line 19 of file Pressure.C.
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;
◆ _alpha
const Real Pressure::_alpha |
|
protected |
◆ _component
const int Pressure::_component |
|
protected |
◆ _factor
const Real Pressure::_factor |
|
protected |
◆ _function
const Function* const Pressure::_function |
|
protected |
◆ _postprocessor
const PostprocessorValue* const Pressure::_postprocessor |
|
protected |
The documentation for this class was generated from the following files: