www.mooseframework.org
ConservedNoiseInterface.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 CONSERVEDNOISEINTERFACE_H
8 #define CONSERVEDNOISEINTERFACE_H
9 
10 #include "ElementUserObject.h"
11 
12 // Forward Declarations
14 
24 class ConservedNoiseInterface : public ElementUserObject
25 {
26 public:
27  ConservedNoiseInterface(const InputParameters & parameters);
29 
30  virtual Real getQpValue(dof_id_type element_id, unsigned int qp) const = 0;
31 
32 protected:
33  virtual Real getQpRandom() = 0;
34 
35  Real _integral;
36  Real _volume;
37  Real _offset;
38 
39  unsigned int _qp;
40 };
41 
42 #endif // CONSERVEDNOISEINTERFACE_H
ConservedNoiseInterface(const InputParameters &parameters)
This Userobject is the base class of Userobjects that generate one random number per timestep and qua...
virtual Real getQpValue(dof_id_type element_id, unsigned int qp) const =0
virtual Real getQpRandom()=0