22 params.
addParam<
bool>(
"use_displaced_mesh",
true,
"Displaced mesh defaults to true");
24 "value",
"Value multiplied against the residual, e.g. gravitational acceleration");
26 "function",
"1",
"A function that describes the gravitational force");
27 params.
addParam<
Real>(
"alpha", 0.0,
"alpha parameter required for HHT time integration scheme");
28 params.
addParam<MaterialPropertyName>(
"density",
"density",
"The density");
35 _density(this->template getGenericMaterialProperty<
Real, is_ad>(
"density")),
36 _value(this->template getParam<
Real>(
"value")),
37 _function(this->getFunction(
"function")),
38 _alpha(this->template getParam<
Real>(
"alpha"))
46 Real factor = _value * _function.value(_t + _alpha * _dt, _q_point[_qp]);
47 return _density[_qp] * _test[_i][_qp] * -factor;
Moose::GenericType< Real, is_ad > GenericReal
static InputParameters validParams()
registerMooseObject("SolidMechanicsApp", Gravity)
virtual GenericReal< is_ad > computeQpResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
GravityTempl(const InputParameters ¶meters)
Gravity computes the body force (force/volume) given the acceleration of gravity (value) and the dens...
static InputParameters validParams()