From 222ac9abae8df69fca9380b7fb634e3bfa5bf8c6 Mon Sep 17 00:00:00 2001 From: Aseem Jain Date: Thu, 7 Jul 2022 16:15:20 +0530 Subject: [PATCH] Corrected few mistakes --- doc/source/api/visualization/matplot_windows_manager.rst | 8 ++++---- doc/source/api/visualization/pyvista_windows_manager.rst | 8 ++++---- .../00-postprocessing/post_processing_exhaust_manifold.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/source/api/visualization/matplot_windows_manager.rst b/doc/source/api/visualization/matplot_windows_manager.rst index 545c45fe..42e562f6 100644 --- a/doc/source/api/visualization/matplot_windows_manager.rst +++ b/doc/source/api/visualization/matplot_windows_manager.rst @@ -36,13 +36,13 @@ time step. monitor1.plot("window-2") #Create callback which refreshes window-1 and window-2. - def auto_refersh_plot(session_id, event_info): + def auto_refresh_plot(session_id, event_info): matplot_windows_manager.refresh_windows(session_id, ["window-1", "window-2"]) #Register this callback with server events. - cb_init_id = session.events_manager.register_callback('InitializedEvent', auto_refersh_plot) - cb_data_read_id = session.events_manager.register_callback('DataReadEvent', auto_refersh_plot) - cb_time_step_ended_id = session.events_manager.register_callback('TimestepEndedEvent', auto_refersh_plot) + cb_init_id = session.events_manager.register_callback('InitializedEvent', auto_refresh_plot) + cb_data_read_id = session.events_manager.register_callback('DataReadEvent', auto_refresh_plot) + cb_time_step_ended_id = session.events_manager.register_callback('TimestepEndedEvent', auto_refresh_plot) .. autoclass:: ansys.fluent.visualization.matplotlib.matplot_windows_manager.MatplotWindowsManager diff --git a/doc/source/api/visualization/pyvista_windows_manager.rst b/doc/source/api/visualization/pyvista_windows_manager.rst index 0e3173a4..4b7e4450 100644 --- a/doc/source/api/visualization/pyvista_windows_manager.rst +++ b/doc/source/api/visualization/pyvista_windows_manager.rst @@ -29,13 +29,13 @@ will create animation. contour1.display("window-1") #Create callback which refreshes window-1. - def auto_refersh_contour(session_id, event_info): + def auto_refresh_contour(session_id, event_info): pyvista_windows_manager.refresh_windows(session_id, ["window-1"]) #Register this callback with server events. - cb_init_id = session.events_manager.register_callback('InitializedEvent', auto_refersh_contour) - cb_data_read_id = session.events_manager.register_callback('DataReadEvent', auto_refersh_contour) - cb_time_step_ended_id = session.events_manager.register_callback('TimestepEndedEvent', auto_refersh_contour) + cb_init_id = session.events_manager.register_callback('InitializedEvent', auto_refresh_contour) + cb_data_read_id = session.events_manager.register_callback('DataReadEvent', auto_refresh_contour) + cb_time_step_ended_id = session.events_manager.register_callback('TimestepEndedEvent', auto_refresh_contour) #Create animation for window-1 pyvista_windows_manager.animate_windows(session.id, ["window-1"]) diff --git a/examples/00-postprocessing/post_processing_exhaust_manifold.py b/examples/00-postprocessing/post_processing_exhaust_manifold.py index 2564f873..2a676748 100644 --- a/examples/00-postprocessing/post_processing_exhaust_manifold.py +++ b/examples/00-postprocessing/post_processing_exhaust_manifold.py @@ -29,7 +29,7 @@ ############################################################################### # First, download the case and data file and start Fluent as a service with -# Meshing mode, double precision, number of processors: 2 +# Solver mode, double precision, number of processors: 2 import_case = examples.download_file( filename="exhaust_system.cas.h5", directory="pyfluent/exhaust_system"