ScalarComponentIC

Initial condition to set different values on each component of scalar variable.

All components of the scalar variable must be set simultaneously.

Example input syntax

In this example, the initial values of scalar variables v and a, both of size 2, are set using ScalarComponentIC.

[ICs]
  [./v_ic]
    type = ScalarComponentIC
    variable = 'v'
    values = '1 2'
  [../]

  [./a_ic]
    type = ScalarComponentIC
    variable = 'a'
    values = '4 5'
  [../]
[]
(../moose/test/tests/ics/component_ic/component_ic.i)

Input Parameters

  • valuesInitial values to initialize the scalar variable.

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

    Controllable:No

    Description:Initial values to initialize the scalar variable.

Required Parameters

  • 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.

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.

Advanced Parameters