www.mooseframework.org
RandomIC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef RANDOMIC_H
16 #define RANDOMIC_H
17 
18 #include "InitialCondition.h"
19 
20 // System includes
21 #include <string>
22 
23 // Forward Declarations
24 class InputParameters;
25 class RandomIC;
26 namespace libMesh
27 {
28 class Point;
29 }
30 
31 template <typename T>
33 
34 template <>
36 
40 class RandomIC : public InitialCondition
41 {
42 public:
48  RandomIC(const InputParameters & parameters);
49 
50  virtual Real value(const Point & p) override;
51 
52 protected:
53  Real _min;
54  Real _max;
55  Real _range;
56 };
57 
58 #endif // RANDOMIC_H
Real _max
Definition: RandomIC.h:54
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
InitialConditions are objects that set the initial value of variables.
InputParameters validParams()
InputParameters validParams< RandomIC >()
Definition: RandomIC.C:22
RandomIC just returns a Random value.
Definition: RandomIC.h:40
Real _range
Definition: RandomIC.h:55
Real _min
Definition: RandomIC.h:53