The DistributedForce kernel computes the body force due to the acceleration of mass in an element. More...
#include <DistributedForce.h>
Public Member Functions | |
DistributedForce (const InputParameters ¶meters) | |
Protected Member Functions | |
virtual Real | computeQpResidual () |
virtual Real | computeQpJacobian () |
virtual Real | computeQpOffDiagJacobian (unsigned int jvar) |
Protected Attributes | |
unsigned int | _component |
Real | _acceleration |
unsigned int | _rho_var_number |
const VariableValue & | _rho |
The DistributedForce kernel computes the body force due to the acceleration of mass in an element.
Following F=ma, the density must be integrated over the volume to yield the mass of the volume. In this kernel, the acceleration is assumed to be a constant defined by up to three dimensional components as input. The density must be obtained from the conservation of mass equation as a coupled variable. Typical use of this kernel is the gravitational force acting upon the fluid.
Definition at line 27 of file DistributedForce.h.
DistributedForce::DistributedForce | ( | const InputParameters & | parameters | ) |
Definition at line 33 of file DistributedForce.C.
|
protectedvirtual |
Definition at line 50 of file DistributedForce.C.
|
protectedvirtual |
Definition at line 56 of file DistributedForce.C.
|
protectedvirtual |
Definition at line 43 of file DistributedForce.C.
|
protected |
Definition at line 38 of file DistributedForce.h.
Referenced by computeQpOffDiagJacobian(), and computeQpResidual().
|
protected |
Definition at line 37 of file DistributedForce.h.
|
protected |
Definition at line 40 of file DistributedForce.h.
Referenced by computeQpResidual().
|
protected |
Definition at line 39 of file DistributedForce.h.
Referenced by computeQpOffDiagJacobian().