www.mooseframework.org
ConservedUniformNoiseVeneer.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
20 template <class T>
22 {
23 public:
24  ConservedUniformNoiseVeneer(const InputParameters & parameters);
25 
26 protected:
27  Real getQpRandom();
28 };
29 
30 template <class T>
32  : T(parameters)
33 {
34 }
35 
36 template <class T>
37 Real
39 {
40  return 2.0 * this->getRandomReal() - 1.0;
41 }
Veneer to build userobjects that generate a uniformly distributed random number in the interval [-1:1...
ConservedUniformNoiseVeneer(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real