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.");
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;
PresetDisplacement(const InputParameters ¶meters)
virtual Real timeDerivative(Real t, const Point &p) const
static InputParameters validParams()
const VariableValue & _accel_old
static InputParameters validParams()
const VariableValue & _u_old
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
This class applies a displacement time history on a given boundary in a given direction.
registerMooseObject("SolidMechanicsApp", PresetDisplacement)
const VariableValue & _vel_old
const Function & _function
virtual Real computeQpValue()
const Elem & get(const ElemType type_in)