www.mooseframework.org
RandomIC.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 
12 #include "RandomICBase.h"
13 #include "DistributionInterface.h"
14 
15 // Forward Declarations
16 class InputParameters;
17 class Distribution;
18 namespace libMesh
19 {
20 class Point;
21 }
22 
23 template <typename T>
25 
30 {
31 public:
37 
38  virtual Real value(const Point & p) override;
39 
41 
42 protected:
44  const Real _min;
45 
47  const Real _max;
48 
51 };
const Real _max
The upper bound of the random number range.
Definition: RandomIC.h:47
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
All Distributions should inherit from this class.
Definition: Distribution.h:18
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
InputParameters validParams()
RandomIC(const InputParameters &parameters)
Constructor.
Definition: RandomIC.C:34
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition: RandomIC.C:53
Interface for objects that need to use distributions.
RandomIC just returns a Random value.
Definition: RandomIC.h:29
Distribution const * _distribution
Distribution object optionally used to define distribution of random numbers.
Definition: RandomIC.h:50
const Real _min
The lower bound of the random number range.
Definition: RandomIC.h:44
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
Definition: RandomIC.C:18
const InputParameters & parameters() const
Get the parameters of the object.
Base class for randomly generated initial conditions.
Definition: RandomICBase.h:29