Pyfluent Parametric study #1766
-
Hello everyone, I am currently working on automating the simulation process using PyFluent, but I've run into a few problems and could use some assistance. Specifically, I'm having trouble changing the residual value from 1e-3 to 1e-6 in my simulations. Additionally, I'm encountering issues while creating input and output parameters for a parametric study involving the analysis of drag and lift coefficients of an airfoil at three different angles. To provide some context, I'm attempting to vary the angles of the airfoil and observe how it affects the drag and lift coefficients. In order to do this, I need to split the velocity magnitude into its x and y components, but I'm having difficulties creating these components as input parameters. Furthermore, I'm facing a challenge when attempting to create an output parameter. Although I have successfully defined the report definition for the output parameter, it doesn't seem to work as expected. If anyone has experience with PyFluent or similar tools and could offer some guidance, I would greatly appreciate it. Specifically, I would like to know how to change the residual value from 1e-3 to 1e-6, as well as how to properly create input parameters for the x and y components of the velocity magnitude. Additionally, any insights into creating effective output parameters for a parametric study would be invaluable. Thank you in advance for your help and support! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
For setting input and output parameters, you can follow the example from pyfluent-parametric. |
Beta Was this translation helpful? Give feedback.
-

Subject: Inquiry about Setting Rotational Velocity as an Input Parameter in
PyFluent
Dear Sir,
I hope this email finds you well. I am currently conducting a parametric
study using PyFluent for my simulation work. While working with the
software, I came across a query that I would greatly appreciate your
assistance with.
In the documentation for PyFluent, I noticed that velocity can be assigned
as an input parameter. However, my specific simulation requires the use of
a moving frame of reference, where rotational velocity is a crucial input
parameter. To achieve this, I would like to set the rotational velocity as
an input parameter in my simulations.
Interestingly, I was able to successfully make this adjustment using the
graphical user interface (GUI) provided by Fluent. However, I encountered
difficulties when attempting to achieve the same result through the
PyFluent scripting interface. Despite my efforts, I couldn't figure out the
proper method to set the rotational velocity as an input parameter using
the scripting approach.
I believe that having the ability to control this parameter
programmatically through the script is essential for automating my
parametric study effectively. Thus, I am reaching out to you for guidance
on how to achieve this using PyFluent's scripting capabilities.
To provide a clearer understanding of my query, I have attached an image
that visually represents the scenario I am describing.
I am confident that with your expertise, I will be able to overcome this
challenge and proceed with my simulation work as intended. Your assistance
would be of great value to me in advancing my research.
Thank you in advance for your time and support. I am looking forward to
your response.
Best regards,
Paul Stephen
…On Sat, Jul 8, 2023 at 2:15 AM Mainak Kundu ***@***.***> wrote:
For setting input and output parameters, you can follow the example
<https://parametric.fluent.docs.pyansys.com/version/stable/examples/00-parametric/parametric_static_mixer_1.html#create-input-parameters>
from pyfluent-parametric.
—
Reply to this email directly, view it on GitHub
<#1766 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BA73XRXZUIUO2GLIJ2HQ7J3XPCRDTANCNFSM6AAAAAA2BO7CT4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
solver.tui.solve.monitors.residual.convergence_criteria(1e-6, 1e-6, 1e-6, 1e-6, 1e-6, 1e-6, 1e-6)
sets up the convergence criteria for a case I'm testing with. It is better to set this up in Fluent TUI first with turning on the journal recording and use the Fluent journal as reference to confirm the residual names and order.