I have some commands like the following in my code:
session.tui.solver.report.simulation_reports.generate_simulation_report('SimRep2')
session.tui.solver.display.save_picture(image + ".jpg")
I'm finding that the program advances to the next lines even before these lines are complete, resulting in errors when subsequent lines require the output of these lines. I am resorting to including sleep commands in my code to avoid this issue. Is there a better workaround? Should the code be waiting for a signal from Fluent that the execution is complete before progressing to the next line?
Thanks