Skip to content
Draft
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
1 change: 1 addition & 0 deletions doc/changelog.d/4656.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Arguments in standalone launcher.
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@
"scheduler_account": {
"type": "str",
"fluent_format": " -scheduler_account={}"
}
},
"insecure_mode": {
"type": "bool",
"fluent_format": " -grpc-allow-remote-host -grpc-insecure-mode"
},
}
20 changes: 20 additions & 0 deletions src/ansys/fluent/core/launcher/standalone_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ def __init__(
topy: str | list | None = None,
start_watchdog: bool | None = None,
file_transfer_service: Any | None = None,
certificates_folder: str | None = None,
insecure_mode: bool = False,
):
"""
Launch a Fluent session in standalone mode.
Expand Down Expand Up @@ -174,6 +176,12 @@ def __init__(
GUI-less Fluent sessions started by PyFluent are properly closed when the current Python process ends.
file_transfer_service : Any
Service for uploading/downloading files to/from the server.
certificates_folder : str, optional
Path to the folder containing TLS certificates for Fluent's gRPC server.
insecure_mode : bool, optional
If True, Fluent's gRPC server will be started in insecure mode without TLS.
This mode is not recommended. For more details on the implications
and usage of insecure mode, refer to the Fluent documentation.

Raises
------
Expand All @@ -187,6 +195,18 @@ def __init__(
"""
import ansys.fluent.core as pyfluent

if certificates_folder is None and not insecure_mode:
raise ValueError(
"To launch Fluent in Slurm environment, set `certificates_folder`."
)
if certificates_folder is not None and insecure_mode:
raise ValueError(
"`certificates_folder` and `insecure_mode` cannot be set at the same time."
)

self.certificates_folder = certificates_folder
self.insecure_mode = insecure_mode
Copy link
Contributor

@mkundu1 mkundu1 Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are these arguments passed to Fluent or used in the client during the channel construction?


locals_ = locals().copy()
argvals = {
arg: locals_.get(arg)
Expand Down
8 changes: 8 additions & 0 deletions src/ansys/fluent/core/session_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def from_install(
topy: str | list | None = None,
start_watchdog: bool | None = None,
file_transfer_service: Any | None = None,
certificates_folder: str | None = None,
insecure_mode: bool = False,
):
"""
Launch a Fluent session in standalone mode.
Expand Down Expand Up @@ -152,6 +154,12 @@ def from_install(
GUI-less Fluent sessions started by PyFluent are properly closed when the current Python process ends.
file_transfer_service : Any
Service for uploading/downloading files to/from the server.
certificates_folder : str, optional
Path to the folder containing TLS certificates for Fluent's gRPC server.
insecure_mode : bool, optional
If True, Fluent's gRPC server will be started in insecure mode without TLS.
This mode is not recommended. For more details on the implications
and usage of insecure mode, refer to the Fluent documentation.

Raises
------
Expand Down
Loading