update_to_current#

solution_time.update_to_current() int#

Causes the display and all associated computations of the model to be updated to the currently specified time or 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)
#
# But here we change it to use time steps
#
ensight.solution_time.show_as("step")
ensight.solution_time.update_type("discrete")
ensight.solution_time.begin_step(0)
ensight.solution_time.end_step(16)
ensight.solution_time.current_step(5)
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