Skip to content

how to set different fixed time steps for different time periods #29087

Discussion options

You must be logged in to vote

Hello

Different time step cannot be done directly in the Executioner block. You can only do the "ConstantDT" behavior there.
You can use the TimeStepper or the TimeSteppers block.

I need to get the current time to segment the time, is there a way to get the current time in the Timestepper? I tried to use _t and _current_time/getCurrentTime but no help. Thanks for your help!

The current time is accessible when coding a time stepper using the _time attribute. The time is retrieved from the problem.

    _time(_fe_problem.time()),

different fixed time steps for different time period

If you already know the size of the fixed time step and the start and end time of the periods, you could u…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SunJianhang678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants