www.mooseframework.org
ConservedUniformNoiseVeneer.h
Go to the documentation of this file.
1 #ifndef CONSERVEDUNIFORMNOISEVENEER_H
2 #define CONSERVEDUNIFORMNOISEVENEER_H
3 
12 template <class T>
14 {
15 public:
16  ConservedUniformNoiseVeneer(const InputParameters & parameters);
17 
18 protected:
19  Real getQpRandom();
20 };
21 
22 template <class T>
24  : T(parameters)
25 {
26 }
27 
28 template <class T>
29 Real
31 {
32  return 2.0 * this->getRandomReal() - 1.0;
33 }
34 
35 #endif // CONSERVEDUNIFORMNOISEVENEER_H
Veneer to build userobjects that generate a uniformly distributed random number in the interval [-1:1...
ConservedUniformNoiseVeneer(const InputParameters &parameters)