-
Notifications
You must be signed in to change notification settings - Fork 41
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
Issue with calculate_patch #3141
Comments
@seanpearsonuk, Please could you move this to Fluent side. Thank you. |
Hi @mcgoldba Thank you for providing your detailed report. You mentioned that the equivalent TUI command works correctly when you use it directly in Fluent. Have you tried the following?
Note: You can also automate the above procedure either using Fluent command line arguments are with the The generated file should be a Python script that you can use either in PyFluent or in the Fluent Python console. Each solver TUI command call will generate either a Python Please let us know if this procedure generates different calls and whether those calls are effective. cc: @prmukherj |
When I record a journal I do not get Python commands, but the following
How do I create a Python journal? |
How do I create a Python journal? You can do this either in Fluent or PyFluent. If you do it in Fluent, you can select a .py extension for the output file when you start journaling. |
Try this: (api-start-python-journal "file_name.py") This will give you new output file in your working directory "file_name.py" This worked for me and generated: solver.solution.initialization.patch.calculate_patch(domain = "domian", cell_zones = ["zone"], registers = [], variable = "mp", reference_frame = "Relative to Cell Zone", use_custom_field_function = False, custom_field_function_name = "", value = 1) It should give you something that looks similar. |
🔍 Before submitting the issue
🐞 Description of the bug
When trying to patch the volume mesh with initial values using
The result is that zero cells are marked:
0 cells marked
I get the same result if I try to use the tui module in pyFluent with
When setting values with the same inputs using the TUI in command line Fluent, the cells are marked appropriately for each cell register.
📝 Steps to reproduce
Output:
Output:
Output:
0 cells marked
💻 Which operating system are you using?
Linux
📀 Which ANSYS version are you using?
2024R1
🐍 Which Python version are you using?
3.12
📦 Installed packages
The text was updated successfully, but these errors were encountered: