www.mooseframework.org
BodyForce.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 BODYFORCE_H
16 #define BODYFORCE_H
17 
18 #include "Kernel.h"
19 
20 // Forward Declarations
21 class BodyForce;
22 class Function;
23 
24 template <>
26 
35 class BodyForce : public Kernel
36 {
37 public:
39 
40 protected:
41  virtual Real computeQpResidual() override;
42 
44  const Real & _scale;
45 
48 
51 };
52 
53 #endif
This kernel implements a generic functional body force term: $ - c f $.
Definition: BodyForce.h:35
Base class for function objects.
Definition: Function.h:46
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams< BodyForce >()
Definition: BodyForce.C:22
const PostprocessorValue & _postprocessor
Optional Postprocessor value.
Definition: BodyForce.h:50
Real PostprocessorValue
MOOSE typedefs.
Definition: MooseTypes.h:73
virtual Real computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: BodyForce.C:45
const Real & _scale
Scale factor.
Definition: BodyForce.h:44
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
Definition: Kernel.h:25
BodyForce(const InputParameters &parameters)
Definition: BodyForce.C:36
Function & _function
Optional function value.
Definition: BodyForce.h:47