https://mooseframework.inl.gov
Loading...
Searching...
No Matches
RandomIC.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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"
14
15// Forward Declarations
16class InputParameters;
17class Distribution;
18namespace libMesh
19{
20class Point;
21}
22
23template <typename T>
25
30{
31public:
37
38 virtual Real value(const Point & p) override;
39
41
42protected:
44 const Real _min;
45
47 const Real _max;
48
51};
InputParameters validParams()
Interface for objects that need to use distributions.
All Distributions should inherit from this class.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Base class for randomly generated initial conditions.
RandomIC just returns a Random value.
Definition RandomIC.h:30
const Real _max
The upper bound of the random number range.
Definition RandomIC.h:47
static InputParameters validParams()
Definition RandomIC.C:18
Distribution const * _distribution
Distribution object optionally used to define distribution of random numbers.
Definition RandomIC.h:50
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition RandomIC.C:53
const Real _min
The lower bound of the random number range.
Definition RandomIC.h:44
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...