www.mooseframework.org
ConservedNoiseBase.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 CONSERVEDNOISEBASE_H
8 #define CONSERVEDNOISEBASE_H
9 
11 
12 #include <unordered_map>
13 
14 // Forward Declarations
15 class ConservedNoiseBase;
16 
17 template <>
18 InputParameters validParams<ConservedNoiseBase>();
19 
30 {
31 public:
32  ConservedNoiseBase(const InputParameters & parameters);
33 
34  virtual ~ConservedNoiseBase() {}
35 
36  virtual void initialize();
37  virtual void execute();
38  virtual void threadJoin(const UserObject & y);
39  virtual void finalize();
40 
41  Real getQpValue(dof_id_type element_id, unsigned int qp) const;
42 
43 protected:
44  std::unordered_map<dof_id_type, std::vector<Real>> _random_data;
45 };
46 
47 #endif // CONSERVEDNOISEBASE_H
virtual void threadJoin(const UserObject &y)
This Userobject is the base class of Userobjects that generate one random number per timestep and qua...
virtual void finalize()
This Userobject is the base class of Userobjects that generate one random number per timestep and qua...
virtual void execute()
ConservedNoiseBase(const InputParameters &parameters)
Real getQpValue(dof_id_type element_id, unsigned int qp) const
std::unordered_map< dof_id_type, std::vector< Real > > _random_data
virtual void initialize()
InputParameters validParams< ConservedNoiseBase >()