Skip to content

feat: Change working directory#3691

Merged
hpohekar merged 13 commits into
mainfrom
feat/change_client_cortex_dir
Jan 31, 2025
Merged

feat: Change working directory#3691
hpohekar merged 13 commits into
mainfrom
feat/change_client_cortex_dir

Conversation

@hpohekar

@hpohekar hpohekar commented Jan 31, 2025

Copy link
Copy Markdown
Collaborator

closes #2945

D:\pyfluent>python
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ansys.fluent.core import launch_fluent
>>> solver = launch_fluent()
>>> solver._app_utilities.get_controller_process_info()
{'hostname': 'AAPQ13pUvWxQtxN', 'process_id': 339960, 'working_directory': 'D:\\pyfluent'}
>>> solver._app_utilities.get_solver_process_info()     
{'hostname': 'AAPQ13pUvWxQtxN.win.ansys.com', 'process_id': 350440, 'working_directory': 'D:/pyfluent'}
>>> solver.chdir("D:\pyfluent\codegen")
>>> solver._app_utilities.get_controller_process_info()
{'hostname': 'AAPQ13pUvWxQtxN', 'process_id': 339960, 'working_directory': 'D:\\pyfluent\\codegen'}
>>> solver._app_utilities.get_solver_process_info()     
{'hostname': 'AAPQ13pUvWxQtxN.win.ansys.com', 'process_id': 350440, 'working_directory': 'D:/pyfluent/codegen'}
>>> solver.exit()

@github-actions github-actions Bot added the new-feature Request or proposal for a new feature label Jan 31, 2025
@hpohekar
hpohekar requested a review from raph-luc January 31, 2025 08:47
@hpohekar hpohekar changed the title feat: Change Cortex and Fluent working directories using PyFluent feat: Change working directory Jan 31, 2025
@ansys ansys deleted a comment from hpohekar Jan 31, 2025
@github-actions github-actions Bot added dependencies maintenance General maintenance of the repo (libraries, cicd, etc) labels Jan 31, 2025
@hpohekar
hpohekar merged commit 566622c into main Jan 31, 2025
@hpohekar
hpohekar deleted the feat/change_client_cortex_dir branch January 31, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance General maintenance of the repo (libraries, cicd, etc) new-feature Request or proposal for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command to change Fluent working directory

3 participants