Gravity computes the body force (force/volume) given the acceleration of gravity (value) and the density.
More...
#include <Gravity.h>
|
| Gravity (const InputParameters ¶meters) |
|
Gravity computes the body force (force/volume) given the acceleration of gravity (value) and the density.
Definition at line 24 of file Gravity.h.
◆ Gravity()
Gravity::Gravity |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 31 of file Gravity.C.
33 _density(getMaterialProperty<Real>(
"density")),
34 _value(getParam<Real>(
"value")),
36 _alpha(getParam<Real>(
"alpha"))
◆ computeQpResidual()
Real Gravity::computeQpResidual |
( |
| ) |
|
|
protectedvirtual |
◆ validParams()
InputParameters Gravity::validParams |
( |
| ) |
|
|
static |
Definition at line 18 of file Gravity.C.
21 params.addClassDescription(
"Apply gravity. Value is in units of acceleration.");
22 params.addParam<
bool>(
"use_displaced_mesh",
true,
"Displaced mesh defaults to true");
23 params.addRequiredParam<Real>(
24 "value",
"Value multiplied against the residual, e.g. gravitational acceleration");
25 params.addParam<FunctionName>(
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");
◆ _alpha
const Real Gravity::_alpha |
|
protected |
◆ _density
const MaterialProperty<Real>& Gravity::_density |
|
protected |
◆ _function
const Function& Gravity::_function |
|
protected |
◆ _value
const Real Gravity::_value |
|
protected |
The documentation for this class was generated from the following files: