www.mooseframework.org
FunctionDiracSource.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef FUNCTIONDIRACSOURCE_H
16 #define FUNCTIONDIRACSOURCE_H
17 
18 // Moose Includes
19 #include "DiracKernel.h"
20 
21 // Forward Declarations
23 class Function;
24 
25 template <>
27 
29 {
30 public:
32 
33  virtual void addPoints() override;
34 
35 protected:
36  virtual Real computeQpResidual() override;
37 
39  Point _p;
40 };
41 
42 #endif // FunctionDiracSource_H
Base class for function objects.
Definition: Function.h:46
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void addPoints() override
This is where the DiracKernel should call addPoint() for each point it needs to have a value distribu...
FunctionDiracSource(const InputParameters &parameters)
InputParameters validParams< FunctionDiracSource >()
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
virtual Real computeQpResidual() override
This is the virtual that derived classes should override for computing the residual.
A DiracKernel is used when you need to add contributions to the residual by means of multiplying some...
Definition: DiracKernel.h:50