show_as#
- solution_time.show_as(p0: str) int #
Sets method to use for specifying time - either as solution time directly or as time steps of data.
- Args:
- p0:
‘method’
step
time
- 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