Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Save all open plots in Ansys Fluent at once

    • eliocpereira
      Subscriber

      I would like to save all my open plots in Ansys Fluent 21.1.0 at once through a button or a console command. I know how to save the plot that I am currently viewing but not all the open ones. For the case of a single plot, I would use the Save Picture button at the right pane or the command disp save-plot where is the name that I would give to it. Do you know how to extend these tools for the case of all plots?

    • Rob
      Forum Moderator
      I don't think you can as Fluent would then need to make up filenames to store the data, depending on how enthusiastic you are with monitors that could also be a lot of images. If you want to journal the process you need to set the active window and then issue the save-picture command. With 2021Rx you can also embed graph plots into other windows so that may be an alternative approach.
    • eliocpereira
      Subscriber
      I tried to follow your suggestion by creating a journal named "save_monitors.jou" that plots and saves my monitors. This journal has the following structure (I am only showing here a snippet fore illustrative purposes):
      plot/residuals yes yes yes yes yes yes yes

      /display/save-picture "monitors/residuals.png"


      /solve/report-plots/plot fan_inlet_totalp-rplot
      /display/save-picture "monitors/fan_inlet_totalp-rplot.png"
      In this journal the residuals and the report plot "fan_inlet_totalp-rplot" are saved in the folder "monitors". To make Fluent read the journal I used the console command file rj save_monitors.jou.
      Thank you for your suggestion, Rob.
    • eliocpereira
      Subscriber
      Thank you for suggestion Rob. I created a journal named "save_monitors.jou" that may help future viewers displaying and saving their monitor plots. This journal has the following structure (I am only showing a snippet here for illustration purposes):
      plot/residuals yes yes yes yes yes yes yes
      /display/save-picture "monitors/residuals.png"

      /solve/report-plots/plot fan_inlet_totalp-rplot /display/save-picture "monitors/fan_inlet_totalp-rplot.png"
      The above commands make Fluent to display and save the residuals plot (the various "yes" are required to plot all the types of residuals) and the report plot "fan_inlet_totalp-rplot" in the folder "monitors". Similar commands may be added to display more plots. The user may make Fluent to read the journal by using the command file rj save_monitors.jou .
    • Rob
      Forum Moderator
      You're welcome. My only comment is to be tidy with the journal syntax (grammar) so
      /plot/residuals
      The / at the beginning forces Fluent to use the full path from root menu.
    • Amine Ben Hadj Ali
      Ansys Employee
      What about relying on Simulation report which can store all defined objects into a single report.
Viewing 5 reply threads
  • The topic ‘Save all open plots in Ansys Fluent at once’ is closed to new replies.