Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected few mistakes #63

Merged
merged 2 commits into from
Jul 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/source/api/visualization/matplot_windows_manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions doc/source/api/visualization/pyvista_windows_manager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down