events_streaming#
Module for events management.
Classes:
Information about the event triggered just before solution is initialized. |
|
|
Information about the event triggered just before a case file is loaded. |
|
Information about the event triggered just before a data file is loaded. |
Information about the event triggered when calculations are ended. |
|
Information about the event triggered when calculations are paused. |
|
Information about the event triggered when calculations are resumed. |
|
Information about the event triggered when calculations are started. |
|
|
Information about the event triggered after a case file is loaded. |
|
Information about the event triggered after a data file is loaded. |
alias of |
|
|
Manages server-side events. |
|
Information about the event triggered when a fatal error occurs. |
|
Information about the event triggered when an iteration is ended. |
|
Enumerates over supported server (Fluent) events. |
|
Information about the event triggered when progress is updated. |
|
Information about the event triggered when a report definition is updated. |
|
Information about the event triggered when a report plot set is updated. |
Information about the event triggered when residual plots are updated. |
|
Information about the event triggered when settings are cleared. |
|
Information about the event triggered after solution is initialized. |
|
|
Information about the event triggered when solution is paused. |
|
Enumerates over supported server (Fluent) events. |
|
Information about the event triggered when solver time estimate is updated. |
|
Information about the event triggered when a timestep is ended. |
|
Information about the event triggered when a timestep is started. |
- class ansys.fluent.core.streaming_services.events_streaming.AboutToInitializeSolutionEventInfo#
Bases:
EventInfoBase
Information about the event triggered just before solution is initialized.
- class ansys.fluent.core.streaming_services.events_streaming.AboutToLoadCaseEventInfo(case_file_name)#
Bases:
EventInfoBase
Information about the event triggered just before a case file is loaded.
- Attributes:
- case_file_name
str
Case filename.
- case_file_name
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.AboutToLoadDataEventInfo(data_file_name)#
Bases:
EventInfoBase
Information about the event triggered just before a data file is loaded.
- Attributes:
- data_file_name
str
Data filename.
- data_file_name
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.CalculationsEndedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when calculations are ended.
- class ansys.fluent.core.streaming_services.events_streaming.CalculationsPausedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when calculations are paused.
- class ansys.fluent.core.streaming_services.events_streaming.CalculationsResumedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when calculations are resumed.
- class ansys.fluent.core.streaming_services.events_streaming.CalculationsStartedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when calculations are started.
- class ansys.fluent.core.streaming_services.events_streaming.CaseLoadedEventInfo(case_file_name)#
Bases:
EventInfoBase
Information about the event triggered after a case file is loaded.
- Attributes:
- case_file_name
str
Case filename.
- case_file_name
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.DataLoadedEventInfo(data_file_name)#
Bases:
EventInfoBase
Information about the event triggered after a data file is loaded.
- Attributes:
- data_file_name
str
Data filename.
- data_file_name
Attributes:
- ansys.fluent.core.streaming_services.events_streaming.Event#
alias of
SolverEvent
- class ansys.fluent.core.streaming_services.events_streaming.EventsManager(event_type, session_events_service, fluent_error_state, session)#
Bases:
Generic
[TEvent
]Manages server-side events.
This class allows the client to register and unregister callbacks with server events.
Methods:
__init__
(event_type, session_events_service, ...)__init__ method of EventsManager class.
register_callback
(event_name, callback, ...)Register the callback.
start
(*args, **kwargs)Start streaming.
stop
()Stop streaming.
unregister_callback
(callback_id)Unregister the callback.
- __init__(event_type, session_events_service, fluent_error_state, session)#
__init__ method of EventsManager class.
- register_callback(event_name, callback, *args, **kwargs)#
Register the callback.
- Parameters:
- event_name
TEvent
orstr
Event to register the callback to.
- callback
Callable
Callback to register. If the custom arguments, args and kwargs, are empty then the callback signature must be precisely <function>(session, event_info). Otherwise, the arguments for args and/or kwargs must precede the other arguments in the signature.
- args
Any
Arguments.
- kwargs
Any
Keyword arguments.
- event_name
- Returns:
str
Registered callback ID.
- Raises:
InvalidArgument
If event name is not valid.
- start(*args, **kwargs)#
Start streaming.
- stop()#
Stop streaming.
- class ansys.fluent.core.streaming_services.events_streaming.FatalErrorEventInfo(message, error_code)#
Bases:
EventInfoBase
Information about the event triggered when a fatal error occurs.
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.IterationEndedEventInfo(index)#
Bases:
EventInfoBase
Information about the event triggered when an iteration is ended.
- Attributes:
- index
int
Iteration index.
- index
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.MeshingEvent(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
Enumerates over supported server (Fluent) events.
Attributes:
- ABOUT_TO_LOAD_CASE = 'AboutToReadCaseEvent'#
- CASE_LOADED = 'CaseReadEvent'#
- FATAL_ERROR = 'ErrorEvent'#
- PROGRESS_UPDATED = 'ProgressEvent'#
- SETTINGS_CLEARED = 'ClearSettingsDoneEvent'#
- class ansys.fluent.core.streaming_services.events_streaming.ProgressUpdatedEventInfo(message, percentage)#
Bases:
EventInfoBase
Information about the event triggered when progress is updated.
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.ReportDefinitionUpdatedEventInfo(report_name)#
Bases:
EventInfoBase
Information about the event triggered when a report definition is updated.
- Attributes:
- report_name
str
Report name.
- report_name
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.ReportPlotSetUpdatedEventInfo(plot_set_name)#
Bases:
EventInfoBase
Information about the event triggered when a report plot set is updated.
- Attributes:
- plot_set_name
str
Plot set name.
- plot_set_name
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.ResidualPlotUpdatedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when residual plots are updated.
- class ansys.fluent.core.streaming_services.events_streaming.SettingsClearedEventInfo#
Bases:
EventInfoBase
Information about the event triggered when settings are cleared.
- class ansys.fluent.core.streaming_services.events_streaming.SolutionInitializedEventInfo#
Bases:
EventInfoBase
Information about the event triggered after solution is initialized.
- class ansys.fluent.core.streaming_services.events_streaming.SolutionPausedEventInfo(level, index)#
Bases:
EventInfoBase
Information about the event triggered when solution is paused.
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.SolverEvent(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#
Bases:
Enum
Enumerates over supported server (Fluent) events.
Attributes:
- ABOUT_TO_INITIALIZE_SOLUTION = 'AboutToInitializeEvent'#
- ABOUT_TO_LOAD_CASE = 'AboutToReadCaseEvent'#
- ABOUT_TO_LOAD_DATA = 'AboutToReadDataEvent'#
- CALCULATIONS_ENDED = 'CalculationsEndedEvent'#
- CALCULATIONS_PAUSED = 'CalculationsPausedEvent'#
- CALCULATIONS_RESUMED = 'CalculationsResumedEvent'#
- CALCULATIONS_STARTED = 'CalculationsStartedEvent'#
- CASE_LOADED = 'CaseReadEvent'#
- DATA_LOADED = 'DataReadEvent'#
- FATAL_ERROR = 'ErrorEvent'#
- ITERATION_ENDED = 'IterationEndedEvent'#
- PROGRESS_UPDATED = 'ProgressEvent'#
- REPORT_DEFINITION_UPDATED = 'ReportDefinitionChangedEvent'#
- REPORT_PLOT_SET_UPDATED = 'PlotSetChangedEvent'#
- RESIDUAL_PLOT_UPDATED = 'ResidualPlotChangedEvent'#
- SETTINGS_CLEARED = 'ClearSettingsDoneEvent'#
- SOLUTION_INITIALIZED = 'InitializedEvent'#
- SOLUTION_PAUSED = 'AutoPauseEvent'#
- SOLVER_TIME_ESTIMATE_UPDATED = 'SolverTimeEstimateEvent'#
- TIMESTEP_ENDED = 'TimestepEndedEvent'#
- TIMESTEP_STARTED = 'TimestepStartedEvent'#
- class ansys.fluent.core.streaming_services.events_streaming.SolverTimeEstimateUpdatedEventInfo(hours, minutes, seconds)#
Bases:
EventInfoBase
Information about the event triggered when solver time estimate is updated.
- Attributes:
Attributes:
- class ansys.fluent.core.streaming_services.events_streaming.TimestepEndedEventInfo(index, size)#
Bases:
EventInfoBase
Information about the event triggered when a timestep is ended.
Attributes: