Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions src/ansys/fluent/visualization/post_windows_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def refresh_windows(
self,
session_id: Optional[str] = "",
windows_id: Optional[List[str]] = [],
overlay: Optional[bool] = False,
) -> None:
"""Refresh windows.

Expand All @@ -123,6 +124,9 @@ def refresh_windows(
windows_id : List[str], optional
Windows id to refresh. If not specified, all windows will be
refreshed.

overlay : bool, Optional
Overlay graphics over existing graphics.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ def refresh_windows(
self,
session_id: Optional[str] = "",
windows_id: Optional[List[str]] = [],
overlay: Optional[bool] = False,
) -> None:
"""Refresh windows.

Expand All @@ -641,14 +642,16 @@ def refresh_windows(
windows_id : List[str], optional
IDs of the windows to refresh. The default is ``[]``, in which case
all windows are refreshed.
overlay : bool, Optional
Overlay graphics over existing graphics.
"""
with self._condition:
windows_id = self._get_windows_id(session_id, windows_id)
for window_id in windows_id:
window = self._post_windows.get(window_id)
if window:
window.refresh = True
self.plot(window.post_object, window.id)
self.plot(window.post_object, window.id, overlay=overlay)

def animate_windows(
self,
Expand Down