#include <InertialForce.h>
Definition at line 21 of file InertialForce.h.
◆ InertialForce()
InertialForce::InertialForce |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 45 of file InertialForce.C.
46 : TimeKernel(parameters),
47 _density(getMaterialProperty<Real>(
"density")),
54 _eta(getMaterialProperty<Real>(
"eta")),
55 _alpha(getParam<Real>(
"alpha"))
59 _vel_old = &coupledValueOld(
"velocity");
73 "InertialForce: Either all or none of `beta`, `gamma`, `velocity`, and `acceleration` "
74 "should be provided as input.");
◆ computeQpJacobian()
Real InertialForce::computeQpJacobian |
( |
| ) |
|
|
protectedvirtual |
Definition at line 98 of file InertialForce.C.
103 return _test[_i][_qp] *
_density[_qp] / (
_beta * _dt * _dt) * _phi[_j][_qp] +
107 return _test[_i][_qp] *
_density[_qp] * (*_du_dotdot_du)[_qp] * _phi[_j][_qp] +
◆ computeQpResidual()
Real InertialForce::computeQpResidual |
( |
| ) |
|
|
protectedvirtual |
Definition at line 78 of file InertialForce.C.
84 Real accel = 1. /
_beta *
85 (((_u[_qp] - (*_u_old)[_qp]) / (_dt * _dt)) - (*
_vel_old)[_qp] / _dt -
86 (*_accel_old)[_qp] * (0.5 -
_beta));
87 Real vel = (*_vel_old)[_qp] + (_dt * (1 -
_gamma)) * (*_accel_old)[_qp] +
_gamma * _dt * accel;
88 return _test[_i][_qp] *
_density[_qp] *
92 return _test[_i][_qp] *
_density[_qp] *
93 ((*_u_dotdot)[_qp] + (*_u_dot)[_qp] *
_eta[_qp] * (1.0 +
_alpha) -
◆ validParams()
InputParameters InertialForce::validParams |
( |
| ) |
|
|
static |
Definition at line 18 of file InertialForce.C.
21 params.addClassDescription(
"Calculates the residual for the inertial force "
22 "($M \\cdot acceleration$) and the contribution of mass"
23 " dependent Rayleigh damping and HHT time "
24 " integration scheme ($\\eta \\cdot M \\cdot"
25 " ((1+\\alpha)velq2-\\alpha \\cdot vel-old) $)");
26 params.set<
bool>(
"use_displaced_mesh") =
true;
27 params.addCoupledVar(
"velocity",
"velocity variable");
28 params.addCoupledVar(
"acceleration",
"acceleration variable");
29 params.addParam<Real>(
"beta",
"beta parameter for Newmark Time integration");
30 params.addParam<Real>(
"gamma",
"gamma parameter for Newmark Time integration");
31 params.addParam<MaterialPropertyName>(
"eta",
33 "Name of material property or a constant real "
34 "number defining the eta parameter for the "
36 params.addParam<Real>(
"alpha",
38 "alpha parameter for mass dependent numerical damping induced "
39 "by HHT time integration scheme");
40 params.addParam<MaterialPropertyName>(
41 "density",
"density",
"Name of Material Property that provides the density");
◆ _accel_old
const VariableValue* InertialForce::_accel_old |
|
private |
◆ _alpha
const Real InertialForce::_alpha |
|
private |
◆ _beta
const Real InertialForce::_beta |
|
private |
◆ _density
const MaterialProperty<Real>& InertialForce::_density |
|
private |
◆ _du_dot_du
const VariableValue* InertialForce::_du_dot_du |
|
private |
◆ _du_dotdot_du
const VariableValue* InertialForce::_du_dotdot_du |
|
private |
◆ _eta
const MaterialProperty<Real>& InertialForce::_eta |
|
private |
◆ _gamma
const Real InertialForce::_gamma |
|
private |
◆ _has_acceleration
const bool InertialForce::_has_acceleration |
|
private |
◆ _has_beta
const bool InertialForce::_has_beta |
|
private |
◆ _has_gamma
const bool InertialForce::_has_gamma |
|
private |
◆ _has_velocity
const bool InertialForce::_has_velocity |
|
private |
◆ _u_dot
const VariableValue* InertialForce::_u_dot |
|
private |
◆ _u_dot_old
const VariableValue* InertialForce::_u_dot_old |
|
private |
◆ _u_dotdot
const VariableValue* InertialForce::_u_dotdot |
|
private |
◆ _u_old
const VariableValue* InertialForce::_u_old |
|
private |
◆ _vel_old
const VariableValue* InertialForce::_vel_old |
|
private |
The documentation for this class was generated from the following files: