Application runtime#
High-level application runtime wrappers.
This module owns the business-logic layer on top of the ApplicationRuntime gRPC service. The grpc service implementation lives in:
ansys.fluent.core._grpc_services.application_runtime_service(v1 proto API)ansys.fluent.core._grpc_services.application_runtime_service_v0(v0 proto API)
Class hierarchy#
ApplicationRuntimegRPC-based implementation (v1 proto API).
ApplicationRuntimeV261V252Shared implementation for 25R2 and 26R1.
ApplicationRuntimeV261(ApplicationRuntimeV261V252)gRPC-based implementation valid till 26R1 (v0 proto API).
ApplicationRuntimeV252(ApplicationRuntimeV261V252)gRPC-based implementation valid till 25R2 (v0 proto API).
EnableBetawas not yet implemented; delegates to Scheme instead.ApplicationRuntimeOldScheme-based fallback used for Fluent versions before 25R2.
Classes:
|
Application runtime backed by the ApplicationRuntime gRPC service. |
|
Application runtime backed by Scheme evaluation (Fluent < 25R2). |
|
Application runtime for Fluent 25R2. |
|
Application runtime for Fluent 26R1. |
|
Application runtime for Fluent 26R1 and 25R2. |
- class ansys.fluent.core.services.application_runtime.ApplicationRuntime(service)#
Bases:
AbstractApplicationRuntimeApplication runtime backed by the ApplicationRuntime gRPC service.
Methods:
__init__(service)Initialize ApplicationRuntime.
Enable beta features.
exit()Exit the server.
Get app mode.
Get build info.
Get controller process info.
Get dimension.
Get GPU config.
Get graphics driver.
Get precision.
Get processor count.
Get product version.
Get solver process info.
Get UI mode.
Return whether beta features are enabled.
set_idle_timeout(timeout)Set the Fluent session idle timeout.
set_working_directory(path)Change the client cortex working directory.
start_python_journal([journal_name])Start python journal.
stop_python_journal([journal_id])Stop python journal.
- __init__(service)#
Initialize ApplicationRuntime.
- enable_beta()#
Enable beta features.
- exit()#
Exit the server.
- get_app_mode()#
Get app mode.
- get_build_info()#
Get build info.
- get_controller_process_info()#
Get controller process info.
- get_dimension()#
Get dimension.
- get_gpu_config()#
Get GPU config.
- get_graphics_driver()#
Get graphics driver.
- get_precision()#
Get precision.
- get_processor_count()#
Get processor count.
- get_product_version()#
Get product version.
- get_solver_process_info()#
Get solver process info.
- get_ui_mode()#
Get UI mode.
- is_beta_enabled()#
Return whether beta features are enabled.
- set_idle_timeout(timeout)#
Set the Fluent session idle timeout.
- set_working_directory(path)#
Change the client cortex working directory.
- start_python_journal(journal_name=None)#
Start python journal.
- stop_python_journal(journal_id=None)#
Stop python journal.
- class ansys.fluent.core.services.application_runtime.ApplicationRuntimeOld(scheme_eval)#
Bases:
objectApplication runtime backed by Scheme evaluation (Fluent < 25R2).
Methods:
__init__(scheme_eval)Initialize ApplicationRuntimeOld.
Enable beta features.
exit()Exit the server.
Get app mode.
Get build info.
Get controller process info.
Get dimension.
Get GPU config.
Get graphics driver.
Get precision.
Get processor count.
Get product version.
Get solver process info.
Get UI mode.
Return whether beta features are enabled.
Return whether solution data is currently available.
is_wildcard([input])Return whether input contains a wildcard pattern.
register_pause_on_solution_events(solution_event)Register pause on solution events.
resume_on_solution_event(registration_id)Resume on solution event.
set_idle_timeout(timeout)Set the Fluent session idle timeout.
set_working_directory(path)Change the client cortex working directory.
start_python_journal([journal_name])Start python journal.
stop_python_journal([journal_id])Stop python journal.
Unregister pause on solution events.
- __init__(scheme_eval)#
Initialize ApplicationRuntimeOld.
- enable_beta()#
Enable beta features.
- Raises:
RuntimeErrorNot supported before Fluent 2025 R2.
- exit()#
Exit the server.
- get_app_mode()#
Get app mode.
- get_build_info()#
Get build info.
- get_controller_process_info()#
Get controller process info.
- get_dimension()#
Get dimension.
- get_gpu_config()#
Get GPU config.
- Raises:
ValueErrorIf the GPU ID string cannot be parsed.
- get_graphics_driver()#
Get graphics driver.
- Raises:
ValueErrorIf the graphics driver is unknown.
- get_precision()#
Get precision.
- get_processor_count()#
Get processor count.
- get_product_version()#
Get product version.
- get_solver_process_info()#
Get solver process info.
- get_ui_mode()#
Get UI mode.
- is_beta_enabled()#
Return whether beta features are enabled.
- is_solution_data_available()#
Return whether solution data is currently available.
- is_wildcard(input=None)#
Return whether input contains a wildcard pattern.
- register_pause_on_solution_events(solution_event)#
Register pause on solution events.
- resume_on_solution_event(registration_id)#
Resume on solution event.
- set_idle_timeout(timeout)#
Set the Fluent session idle timeout.
- set_working_directory(path)#
Change the client cortex working directory.
- start_python_journal(journal_name=None)#
Start python journal.
- stop_python_journal(journal_id=None)#
Stop python journal.
- unregister_pause_on_solution_events(registration_id)#
Unregister pause on solution events.
- class ansys.fluent.core.services.application_runtime.ApplicationRuntimeV252(service, scheme)#
Bases:
ApplicationRuntimeV261V252Application runtime for Fluent 25R2.
enable_betais not implemented on the 25R2 server so it falls back to a Scheme call.Methods:
__init__(service, scheme)Initialize ApplicationRuntimeV252.
Enable beta features via Scheme (25R2 fallback).
- __init__(service, scheme)#
Initialize ApplicationRuntimeV252.
- enable_beta()#
Enable beta features via Scheme (25R2 fallback).
- class ansys.fluent.core.services.application_runtime.ApplicationRuntimeV261(service, scheme)#
Bases:
ApplicationRuntimeV261V252Application runtime for Fluent 26R1.
enable_betais implemented in the 26R1 server.Methods:
__init__(service, scheme)Initialize ApplicationRuntimeV252.
Enable beta features.
- __init__(service, scheme)#
Initialize ApplicationRuntimeV252.
- enable_beta()#
Enable beta features.
- class ansys.fluent.core.services.application_runtime.ApplicationRuntimeV261V252(service, scheme)#
Bases:
objectApplication runtime for Fluent 26R1 and 25R2.
is_wildcardis migrated to settings in 27R1.is_solution_data_availableis migrated to field_data in 27R1.register_pause_on_solution_eventsis migrated to events in 27R1.resume_on_solution_eventis migrated to events in 27R1.unregister_pause_on_solution_eventsis migrated to events in 27R1.Methods:
__init__(service, scheme)Initialize ApplicationRuntime.
exit()Exit the server.
Get app mode.
Get build info.
Get controller process info.
Get dimension.
Get GPU config.
Get graphics driver.
Get precision.
Get processor count.
Get product version.
Get solver process info.
Get UI mode.
Return whether beta features are enabled.
Return whether solution data is currently available.
is_wildcard([input])Return whether input contains a wildcard pattern.
register_pause_on_solution_events(solution_event)Register pause on solution events.
resume_on_solution_event(registration_id)Resume on solution event.
set_idle_timeout(timeout)Set the Fluent session idle timeout.
set_working_directory(path)Change the client cortex working directory.
start_python_journal([journal_name])Start python journal.
stop_python_journal([journal_id])Stop python journal.
Unregister pause on solution events.
- __init__(service, scheme)#
Initialize ApplicationRuntime.
- exit()#
Exit the server.
- get_app_mode()#
Get app mode.
- get_build_info()#
Get build info.
- get_controller_process_info()#
Get controller process info.
- get_dimension()#
Get dimension.
- get_gpu_config()#
Get GPU config.
- Raises:
ValueErrorIf the GPU ID string cannot be parsed.
- get_graphics_driver()#
Get graphics driver.
- Raises:
ValueErrorIf the graphics driver is unknown.
- get_precision()#
Get precision.
- get_processor_count()#
Get processor count.
- get_product_version()#
Get product version.
- get_solver_process_info()#
Get solver process info.
- get_ui_mode()#
Get UI mode.
- is_beta_enabled()#
Return whether beta features are enabled.
- is_solution_data_available()#
Return whether solution data is currently available.
- is_wildcard(input=None)#
Return whether input contains a wildcard pattern.
- register_pause_on_solution_events(solution_event)#
Register pause on solution events.
- resume_on_solution_event(registration_id)#
Resume on solution event.
- set_idle_timeout(timeout)#
Set the Fluent session idle timeout.
- set_working_directory(path)#
Change the client cortex working directory.
- start_python_journal(journal_name=None)#
Start python journal.
- stop_python_journal(journal_id=None)#
Stop python journal.
- unregister_pause_on_solution_events(registration_id)#
Unregister pause on solution events.