20 "Prescribe the displacement on a given boundary in a given direction.");
22 params.
addParam<Real>(
"scale_factor", 1,
"Scale factor if function is given.");
23 params.
addParam<FunctionName>(
"function",
"1",
"Function describing the displacement.");
26 params.
addRequiredParam<Real>(
"beta",
"beta parameter for Newmark time integration.");
29 params.
set<
bool>(
"preset") =
true;
38 _scale_factor(parameters.get<Real>(
"scale_factor")),
39 _function(getFunction(
"function")),
40 _vel_old(coupledValueOld(
"velocity")),
41 _accel_old(coupledValueOld(
"acceleration")),
42 _beta(getParam<Real>(
"beta"))
51 Real accel = (vel - vel_old) /
_dt;
registerMooseObject("SolidMechanicsApp", PresetDisplacement)
static InputParameters validParams()
virtual Real timeDerivative(Real t, const Point &p) const
This class applies a displacement time history on a given boundary in a given direction.
const VariableValue & _vel_old
virtual Real computeQpValue()
const VariableValue & _accel_old
static InputParameters validParams()
PresetDisplacement(const InputParameters ¶meters)
const Function & _function
const VariableValue & _u_old