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