Skip to content
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

Fix for #2188 #2193

Merged
merged 4 commits into from Nov 2, 2023
Merged

Fix for #2188 #2193

merged 4 commits into from Nov 2, 2023

Conversation

hpohekar
Copy link
Collaborator

@hpohekar hpohekar commented Nov 2, 2023

>>> import ansys.fluent.core as pyfluent
>>> from ansys.fluent.core import examples
>>> import_case = examples.download_file(file_name="exhaust_system.cas.h5", directory="pyfluent/exhaust_system")
Checking if specified file already exists...
File already exists. File path:
C:\Users\hpohekar\AppData\Local\Ansys\ansys_fluent_core\examples\exhaust_system.cas.h5
>>> import_data = examples.download_file(file_name="exhaust_system.dat.h5", directory="pyfluent/exhaust_system")
Checking if specified file already exists...
File already exists. File path:
C:\Users\hpohekar\AppData\Local\Ansys\ansys_fluent_core\examples\exhaust_system.dat.h5
>>> solver_session = pyfluent.launch_fluent(precision="double", processor_count=2, start_transcript=False, mode="solver", show_gui=True)         
>>> solver_session.tui.file.read_case(import_case)
pyfluent.tui WARNING: Currently calling the TUI commands in a generic manner. Please run `python codegen/allapigen.py` from the top-level pyfluent directory to generate the local TUI commands classes.
The following solver settings object method could also be used to execute the above command:
<solver_session>.file.read_case(file_name = r"C:\Users\hpohekar\AppData\Local\Ansys\ansys_fluent_core\examples\exhaust_system.cas.h5")
>>> solver_session.tui.file.read_data(import_data)
The following solver settings object method could also be used to execute the above command:
<solver_session>.file.read_data(file_name = r"C:\Users\hpohekar\AppData\Local\Ansys\ansys_fluent_core\examples\exhaust_system.dat.h5")
>>> solver_session.tui.solve.set.number_of_iterations(15)
The following solver settings object method could also be used to execute the above command:
<solver_session>.solution.run_calculation.iter_count = 15
>>> solver_session.tui.solve.iterate()
The following solver settings object method could also be used to execute the above command:
<solver_session>.solution.run_calculation.iterate(iter_count = 15)
>>> solver_session.monitors_manager.get_monitor_set_names()
['residual', 'mass-bal-rplot', 'mass-tot-rplot', 'mass-in-rplot', 'point-vel-rplot']
>>> solver_session.monitors_manager.get_monitor_set_names()
['residual', 'mass-bal-rplot', 'mass-tot-rplot', 'mass-in-rplot', 'point-vel-rplot']
>>> solver_session.monitors_manager.get_monitor_set_names()
['residual', 'mass-bal-rplot', 'mass-tot-rplot', 'mass-in-rplot', 'point-vel-rplot', 'report-plot-0']
>>>

@hpohekar hpohekar marked this pull request as draft November 2, 2023 09:04
@hpohekar hpohekar linked an issue Nov 2, 2023 that may be closed by this pull request
2 tasks
@hpohekar hpohekar marked this pull request as ready for review November 2, 2023 09:54
@seanpearsonuk
Copy link
Collaborator

@hpohekar I like to include @tejalprabhu01 in the reviewers whenever she has submitted the issue. Adding her now...

@hpohekar hpohekar merged commit c3f2ea2 into main Nov 2, 2023
19 checks passed
@hpohekar hpohekar deleted the fix/bug_2188 branch November 2, 2023 15:15
raph-luc pushed a commit that referenced this pull request Nov 14, 2023
* Fix for #2188

* test for #2188

* test for #2188

* test for 232 and 241
raph-luc pushed a commit that referenced this pull request Nov 15, 2023
* Fix for #2188

* test for #2188

* test for #2188

* test for 232 and 241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors related to monitors
5 participants