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

Go to the source code of this file.

Classes

class  DiracKernel
 A DiracKernel is used when you need to add contributions to the residual by means of multiplying some number by the shape functions on an element and adding the value into the residual vector at the places associated with that shape function. More...
 

Functions

template<>
InputParameters validParams< DiracKernel > ()
 

Function Documentation

Definition at line 26 of file DiracKernel.C.

Referenced by validParams< ConstantPointSource >(), and validParams< FunctionDiracSource >().

27 {
30  params.addRequiredParam<NonlinearVariableName>(
31  "variable", "The name of the variable that this kernel operates on");
32 
33  params.addParam<bool>("use_displaced_mesh",
34  false,
35  "Whether or not this object should use the displaced mesh for computation. "
36  "Note that in the case this is true but no displacements are provided in "
37  "the Mesh block the undisplaced mesh will still be used.");
38 
39  params.addParam<bool>(
40  "drop_duplicate_points",
41  true,
42  "By default points added to a DiracKernel are dropped if a point at the same location"
43  "has been added before. If this option is set to false duplicate points are retained"
44  "and contribute to residual and Jacobian.");
45 
46  params.addParamNamesToGroup("use_displaced_mesh drop_duplicate_points", "Advanced");
47 
48  params.declareControllable("enable");
49  params.registerBase("DiracKernel");
50 
51  return params;
52 }
InputParameters validParams< MaterialPropertyInterface >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
InputParameters validParams< MooseObject >()
Definition: MooseObject.C:22