Capture Contour Plots

Santosh G
Santosh G New Altair Community Member
edited October 2020 in Community Q&A

I want to capture contour plots in jpeg format For multiple steps in one go. I have used the attached script, it is giving me contour plots for all the increments. 

is it possible to take contour plots in each step for only last increment (last Frame) with modification in attached script?

Unable to find an attachment - read this blog

Tagged:

Answers

  • Adriano A. Koga
    Adriano A. Koga
    Altair Employee
    edited August 2020

    For changing the increment, if i recall correctly, you need to use 

    ResultCtrlHandle SetCurrentSimulation #increment.

     

    You can also obtain the number of simulations/increment with GetNumberOfSimulations

     

    Similarly i belive we have GetNumberOfSubcases

    And SetCurrentSubcase #sub_id

     

    Then just loop through your subcases using a for loop.