28 params += actionParams();
38 "The magnitude to use in computing the pressure",
39 "Use 'factor' in place of 'constant'");
40 params.
addParam<
Real>(
"factor", 1.0,
"The magnitude to use in computing the pressure");
41 params.
addParam<FunctionName>(
"function",
"The function that describes the pressure");
42 params.
addParam<PostprocessorName>(
"postprocessor",
43 "Postprocessor that will supply the pressure value");
47 "alpha parameter for mass dependent numerical damping induced " 48 "by HHT time integration scheme");
55 _factor(parameters.isParamSetByUser(
"factor") ? this->template getParam<
Real>(
"factor")
56 : parameters.isParamSetByUser(
"constant") ? this->template getParam<
Real>(
"constant")
58 _function(this->isParamValid(
"function") ? &this->getFunction(
"function") : NULL),
60 this->isParamValid(
"postprocessor") ? &this->getPostprocessorValue(
"postprocessor") : NULL),
61 _alpha(this->template getParam<
Real>(
"hht_alpha"))
64 mooseError(
"Cannot set 'factor' and 'constant'.");
74 factor *= _function->value(_t + _alpha * _dt, _q_point[_qp]);
77 factor *= *_postprocessor;
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters actionParams()
void mooseError(Args &&... args)
registerMoosePressureAction("SolidMechanicsApp", Pressure, PressureAction)
typename std::conditional< is_ad, ADPressureBase, PressureBase >::type PressureParent
Pressure applies a pressure on a given boundary in the direction defined by component.
registerMooseObject("SolidMechanicsApp", Pressure)
InputParameters validParams()
PressureTempl(const InputParameters ¶meters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GenericReal< is_ad > computePressure() const override
static InputParameters validParams()