Skip to content

feat: Remote file transfer strategy #4062

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented May 23, 2025

closes #3997

  • Implemented remote file transfer strategy for Fluent instance running remotely.
  • Verified that this is working fine on both Windows and Linux/WSL.

image

image

--------------------------------------------------------------------------

image

image

@github-actions github-actions bot added the new feature Request or proposal for a new feature label May 23, 2025
@mkundu1
Copy link
Contributor

mkundu1 commented May 23, 2025

@hpohekar Can I provide an absolute path within the client machine to the file_name argument of solver.file.read_case? Assume that absolute path doesn't exist within the server machine.

@hpohekar
Copy link
Collaborator Author

hpohekar commented May 23, 2025

@hpohekar Can I provide an absolute path within the client machine to the file_name argument of solver.file.read_case?

@mkundu1 Yes, I have tested both paths. Following works fine as well.

from ansys.fluent.core import connect_to_fluent
from ansys.fluent.core.utils.file_transfer_service import RemoteFileTransferStrategy
file_service = RemoteFileTransferStrategy("10.18.44.179", 50000)
solver = connect_to_fluent(ip="10.18.44.179", port=51344, password="5scj6c8l", file_transfer_service=file_service)
solver.file.read_case(file_name="/home/hpohekar/mixing_elbow.cas.h5")
solver.file.write_case(file_name="written_remote.cas.h5")

@github-actions github-actions bot added the documentation Documentation related (improving, adding, etc) label May 23, 2025
@hpohekar hpohekar marked this pull request as ready for review May 23, 2025 14:58
@hpohekar hpohekar marked this pull request as draft May 23, 2025 15:00
@hpohekar hpohekar marked this pull request as ready for review May 23, 2025 15:47
@hpohekar
Copy link
Collaborator Author

@seanpearsonuk This PR is ready.


3. **Set Working Directory**

Change to the Fluent installation directory:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is changing to Fluent installation directory necessary? User may not have write permission at the installation directory.

Fluent's working directory can be anywhere. The only requirement is that the docker container should be run from Fluent's working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation related (improving, adding, etc) new feature Request or proposal for a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add file-transfer service to Fluent's gRPC server
3 participants