Ansys Products

Ansys Products

Discuss installation & licensing of our Ansys Teaching and Research products

Plotting residuals and definitions plots directly inside Python

    • Shamkhal Mammadov
      Subscriber

      I started using pyfluent and found it a very nice tool for optimization, automation, and use of machine learning.

       

      However, I am having a hard time plotting my residuals directly inside the python 

      here are last lines of my code:

      # Seting up initialization and transient parameters of the simulation
      solver.tui.solve.monitors.residual.print('no')
      solver.solution.initialization.hybrid_initialize()
      solver.solution.run_calculation.transient_controls = {'type': 'Fixed', 'method': 'User-Specified',
                                                          'max_iter_per_time_step': 300,
                                                          'time_step_count': 1972,
                                                          'time_step_size': 5256,
                                                          'solution_status': False,}
      solver.solution.run_calculation.calculate()

      I am wondering how I can access  data of residuals and plot them over time as the simulation runs in the background 


    • Marc Goldbach
      Subscriber

      I am looking to do the same thing.  Have you found any solution?  In my case I am running the python script from a pbs script, so using the fluent gui is not an option (at least I think so).

    • Supreetha J
      Subscriber

      Hello,

      PyAnsys project is developed and supported through GitHub. You can post issues and request new features on the the Issues page for each package, or contact PyAnsys support. For more details, please refer to PyAnsys GitHub page: https://github.com/pyansys

      Thank you.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.