www.mooseframework.org
MaskedBodyForce.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef MASKEDBODYFORCE_H
8 #define MASKEDBODYFORCE_H
9 
10 #include "BodyForce.h"
11 
12 // Forward Declarations
13 class MaskedBodyForce;
14 class Function;
15 
16 template <>
17 InputParameters validParams<MaskedBodyForce>();
18 
25 class MaskedBodyForce : public BodyForce
26 {
27 public:
28  MaskedBodyForce(const InputParameters & parameters);
29 
30 protected:
31  virtual Real computeQpResidual();
32 
33  const MaterialProperty<Real> & _mask;
34 };
35 
36 #endif
virtual Real computeQpResidual()
const MaterialProperty< Real > & _mask
InputParameters validParams< MaskedBodyForce >()
MaskedBodyForce(const InputParameters &parameters)
This kernel creates a body force that is modified by a mask defined as a material.