ConstantIC

Sets a constant field value.

Sets a constant initial condition described by parameter "value". It can be restricted to particular blocks and boundaries using the "block" and "boundary" parameters, respectively.

Example input syntax

In this example, constant initial conditions are set for variable u and auxiliary array variable u_aux. The values of u_aux in block 1 and 2 are set differently by two ConstantIC objects.

[ICs]
  [./ic_u_1]
    type = ConstantIC
    variable = u
    value = 42
    block = '1 2'
  [../]

  [./ic_u_aux_1]
    type = ConstantIC
    variable = u_aux
    value = 6.25
    block = '1'
  [../]
  [./ic_u_aux_2]
    type = ConstantIC
    variable = u_aux
    value = 9.99
    block = '2'
  [../]
[]
(../moose/test/tests/ics/constant_ic/subdomain_constant_ic_test.i)

Input Parameters

  • valueThe value to be set in IC

    C++ Type:double

    Controllable:No

    Description:The value to be set in IC

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

    C++ Type:VariableName

    Controllable:No

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

Required Parameters

  • blockThe list of blocks (ids or names) that this object will be applied

    C++ Type:std::vector<SubdomainName>

    Controllable:No

    Description:The list of blocks (ids or names) that this object will be applied

  • boundaryThe list of boundaries (ids or names) from the mesh where this object applies

    C++ Type:std::vector<BoundaryName>

    Controllable:No

    Description:The list of boundaries (ids or names) from the mesh where this object applies

  • prop_getter_suffixAn optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

    C++ Type:MaterialPropertyName

    Controllable:No

    Description:An optional suffix parameter that can be appended to any attempt to retrieve/get material properties. The suffix will be prepended with a '_' character.

Optional Parameters

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

    C++ Type:std::vector<std::string>

    Controllable:No

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

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:No

    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

    Controllable:No

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

Advanced Parameters