www.mooseframework.org
ConstantPointSource.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 CONSTANTPOINTSOURCE_H
16 #define CONSTANTPOINTSOURCE_H
17 
18 // Moose Includes
19 #include "DiracKernel.h"
20 
21 // Forward Declarations
23 
24 template <>
26 
31 {
32 public:
34 
35  virtual void addPoints() override;
36 
37 protected:
38  virtual Real computeQpResidual() override;
39 
40  const Real & _value;
41  std::vector<Real> _point_param;
42  Point _p;
43 };
44 
45 #endif // CONSTANTPOINTSOURCE_H
std::vector< Real > _point_param
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
ConstantPointSource(const InputParameters &parameters)
InputParameters validParams< ConstantPointSource >()
virtual Real computeQpResidual() override
This is the virtual that derived classes should override for computing the residual.
virtual void addPoints() override
This is where the DiracKernel should call addPoint() for each point it needs to have a value distribu...
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
A DiracKernel is used when you need to add contributions to the residual by means of multiplying some...
Definition: DiracKernel.h:50