update_type#

solution_time.update_type(p0: str) int#

Sets whether times or time steps can be specified between the data steps in the model, thus causing interpolation to be needed.

This command and “solution_time: show_as” combine to control whether interpolation will be needed.
Args:
p0:

‘method’

  • discrete

  • continuous

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