THMSolvePostprocessorControl

This component controls the solve based on a postprocessor value. If the postprocessor indicates zero, no solve is being done. Otherwise, the solve is performed.

Example input syntax

In this example, the problem is only solved between time 0.4 and 0.6s, when the value of the postprocessor in non-zero.

[Functions]
  [active_fn]
    type = PiecewiseConstant
    direction = right
    xy_data = '
      0.2 0
      0.4 1
      0.6 0'
  []
[]

[Postprocessors]
  [active]
    type = FunctionValuePostprocessor
    function = active_fn
  []
[]

[ControlLogic]
  [solve_on_off]
    type = THMSolvePostprocessorControl
    postprocessor = active
  []
[]
(contrib/moose/modules/thermal_hydraulics/test/tests/controls/thm_solve_postprocessor_control/test.i)

Input Parameters

  • postprocessorThe name of the postprocessot that indicates is a solve should be done.

    C++ Type:PostprocessorName

    Unit:(no unit assumed)

    Controllable:No

    Description:The name of the postprocessot that indicates is a solve should be done.

Required Parameters

  • depends_onThe Controls that this control relies upon (i.e. must execute before this one)

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

    Unit:(no unit assumed)

    Controllable:No

    Description:The Controls that this control relies upon (i.e. must execute before this one)

Optional Parameters

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

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

    Unit:(no unit assumed)

    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

    Unit:(no unit assumed)

    Controllable:No

    Description:Set the enabled status of the MooseObject.

  • implicitTrueDetermines whether this object is calculated using an implicit or explicit form

    Default:True

    C++ Type:bool

    Unit:(no unit assumed)

    Controllable:No

    Description:Determines whether this object is calculated using an implicit or explicit form

Advanced Parameters