www.mooseframework.org
Classes | Functions
DistributedForce.h File Reference

Go to the source code of this file.

Classes

class  DistributedForce
 The DistributedForce kernel computes the body force due to the acceleration of mass in an element. More...
 

Functions

template<>
InputParameters validParams< DistributedForce > ()
 

Function Documentation

◆ validParams< DistributedForce >()

template<>
InputParameters validParams< DistributedForce > ( )

Definition at line 16 of file DistributedForce.C.

17 {
18  InputParameters params = validParams<Kernel>();
19 
20  // The acceleration vector.
21  params.addParam<RealVectorValue>(
22  "acceleration",
23  RealVectorValue(0, 0, 0),
24  "The acceleration components for an applied distributed force in an element.");
25  params.addRequiredParam<unsigned int>("component", "acceleration vector components");
26 
27  // The body force acts on the mass of the volume
28  params.addRequiredCoupledVar("rho", "density"); // Density integrated over a volume yields mass
29 
30  return params;
31 }