PostprocessorDT

Computes timestep based on a Postprocessor value.

The postprocessor can be computing a global metric, like the Courant Friedrich Levy criterion with the CFLTimeStepSize or the LevelSetCFLCondition postprocessor. In those cases, the postprocessor computes the maximum value of the timestep that should ensure stability. Variations in numerical schemes may impact the accuracy of this postprocessor, so the PostprocessorDT allows for a scaling factor and an offset to modify the time step.

If the application using the PostprocessorDT is a sub-app, its time step may also be received through a MultiAppPostprocessorTransfer using a Receiver postprocessor.

Example input syntax

In this example, we set the time step to be the maximum value allowable under a CFL criterion for a fluid flow simulation in a shock tube.

[./TimeStepper]
  type = PostprocessorDT
  postprocessor = cfl_dt
[../]

[Postprocessors]
  [./cfl_dt]
    type = ADCFLTimeStepSize
    c_names = 'sound_speed'
    vel_names = 'speed'
  [../]
[]
(moose/modules/navier_stokes/test/tests/finite_volume/cns/shock_tube_2D_cavity/hllc_sod_shocktube_2D.i)

Input Parameters

  • postprocessorThe name of the postprocessor that computes the dt

    C++ Type:PostprocessorName

    Unit:(no unit assumed)

    Controllable:No

    Description:The name of the postprocessor that computes the dt

Required Parameters

  • cutback_factor_at_failure0.5Factor to apply to timestep if a time step fails to converge.

    Default:0.5

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:Factor to apply to timestep if a time step fails to converge.

  • dtInitial value of dt

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:Initial value of dt

  • offset0Add an offset to the supplied postprocessor value.

    Default:0

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:Add an offset to the supplied postprocessor value.

  • reset_dtFalseUse when restarting a calculation to force a change in dt.

    Default:False

    C++ Type:bool

    Unit:(no unit assumed)

    Controllable:No

    Description:Use when restarting a calculation to force a change in dt.

  • scale1Multiple scale and supplied postprocessor value.

    Default:1

    C++ Type:double

    Unit:(no unit assumed)

    Controllable:No

    Description:Multiple scale and supplied postprocessor value.

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.

  • enableTruewhether or not to enable the time stepper

    Default:True

    C++ Type:bool

    Unit:(no unit assumed)

    Controllable:Yes

    Description:whether or not to enable the time stepper

Advanced Parameters