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 RandomIC;
18 class Distribution;
19 namespace libMesh
20 {
21 class Point;
22 }
23 
24 template <typename T>
26 
27 template <>
29 
34 {
35 public:
41 
42  virtual Real value(const Point & p) override;
43 
44 protected:
46  const Real _min;
47 
49  const Real _max;
50 
53 };
54 
const Real _max
The upper bound of the random number range.
Definition: RandomIC.h:49
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:22
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
InputParameters validParams()
This is the templated validParams() function that every MooseObject-derived class is required to spec...
InputParameters validParams< RandomIC >()
Definition: RandomIC.C:19
RandomIC(const InputParameters &parameters)
Constructor.
Definition: RandomIC.C:35
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition: RandomIC.C:54
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
Interface for objects that need to use distributions.
RandomIC just returns a Random value.
Definition: RandomIC.h:33
Distribution const * _distribution
Distribution object optionally used to define distribution of random numbers.
Definition: RandomIC.h:52
const Real _min
The lower bound of the random number range.
Definition: RandomIC.h:46
Base class for randomly generated initial conditions.
Definition: RandomICBase.h:33