RandomIC

RandomIC initializes a variable using randomly generated numbers. These can either follow a uniform distribution over a user-defined range (using the min and max parameters), or follow an arbitrary distribution defined by a Distribution object specified using the distribution parameter. An initial seed value may be set with the "seed" parameter. The RandomIC object produces a parallel agnostic random field.

note

Class Description

Initialize a variable with randomly generated numbers following either a uniform distribution or a user-defined distribution

Input Parameters

  • variableThe variable this initial condition is supposed to provide values for.

    C++ Type:VariableName

    Options:

    Description:The variable this initial condition is supposed to provide values for.

Required Parameters

  • min0Lower bound of uniformly distributed randomly generated values

    Default:0

    C++ Type:double

    Options:

    Description:Lower bound of uniformly distributed randomly generated values

  • max1Upper bound of uniformly distributed randomly generated values

    Default:1

    C++ Type:double

    Options:

    Description:Upper bound of uniformly distributed randomly generated values

  • seed0Seed value for the random number generator

    Default:0

    C++ Type:unsigned int

    Options:

    Description:Seed value for the random number generator

  • distributionName of distribution defining distribution of randomly generated values

    C++ Type:DistributionName

    Options:

    Description:Name of distribution defining distribution of randomly generated values

  • boundaryThe list of boundary IDs from the mesh where this boundary condition applies

    C++ Type:std::vector

    Options:

    Description:The list of boundary IDs from the mesh where this boundary condition applies

  • blockThe list of block ids (SubdomainID) that this object will be applied

    C++ Type:std::vector

    Options:

    Description:The list of block ids (SubdomainID) that this object will be applied

  • legacy_generatorFalseDetermines whether or not the legacy generator (deprecated) should be used.

    Default:False

    C++ Type:bool

    Options:

    Description:Determines whether or not the legacy generator (deprecated) should be used.

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector

    Options:

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Options:

    Description:Set the enabled status of the MooseObject.

  • ignore_uo_dependencyFalseWhen set to true, a UserObject retrieved by this IC will not be executed before the this IC

    Default:False

    C++ Type:bool

    Options:

    Description:When set to true, a UserObject retrieved by this IC will not be executed before the this IC

Advanced Parameters

Input Files

References