current_step#

solution_time.current_step(p0: float) int#

Sets the current time step. Must be between the beginning time step and the ending time step.

Args:
p0:

‘step’ The time step to use as the current time step. If “solution_time: update_type” is “continuous”, this can be float and thus can be set to be fractionally between time steps (interpolation will take place). If the “solution_time: update_type” is “discrete”, this should be an integer.

Examples:
#
# This sets several of the attributes using time steps,
# but the current is set 40% between steps 2 and 3.
#
ensight.solution_time.show_as("step")
ensight.solution_time.update_type("continuous")
ensight.solution_time.begin_step(0)
ensight.solution_time.end_step(16)
ensight.solution_time.current_step(2.4)
ensight.solution_time.update_to_current()
ensight.solution_time.number_of_cycles(1)
ensight.solution_time.increment(1.0000e+00)
Returns:

zero on success, non-zero on error