current_simtime#

solution_time.current_simtime(p0: float) int#

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

This is used when the “solution_time: show_as” command is set to “time”.
Args:
p0:

‘time’ The simulation time to use as the current time. If “solution_time: update_type” is “continuous”, this can be set to be any time between the beginning and ending times, even if it lies between data points (interpolation will take place). If the “solution_time: update_type” is “discrete”, this should be the time associated with a time step.

Examples:
#
# This sets several of the attributes using simulation time
#
ensight.solution_time.show_as("time")
ensight.solution_time.update_type("continuous")
ensight.solution_time.begin_simtime(0.0000e+00)
ensight.solution_time.end_simtime(1.6000e+01)
ensight.solution_time.current_simtime(9.0000e+00)
ensight.solution_time.update_to_current()
ensight.solution_time.number_of_cycles(1)
ensight.solution_time.increment(2.0000e+00)
Returns:

zero on success, non-zero on error