TAGGED: -Additive-Manufacturing-Module
-
-
April 9, 2023 at 10:17 am
Duncan Law
SubscriberI have a quick question on how to run for loops to calculate results in CFD Post or Fluent. Essentially what I want to do is return the variable average:
- Create n number of isosurfaces with separation x metres apart that have a constant z value within a fluid volume.
- For each isosurface:
- return answer = area-averaged velocity in that surface * z
- total += answer
- average = total/n
-
April 12, 2023 at 12:50 pm
Supreetha J
SubscriberHello,You can do this using Python Console.In the Ansys Fluent Launcher, enable the "show beta launcher options". Under the General options tab, enable Python Console and then click Start.Here in Python Console you can use python loops for the desired output in Fluent.Regards,Supreetha -
April 12, 2023 at 12:51 pm
SRP
SubscriberHi,
You can use a for loop to iterate over each isosurface and calculate the area-averaged velocity in that surface. The syntax for the loop will depend on the programming language you are using, but in general, you will want to create a loop that iterates over the range of isosurfaces you created.
Within the loop, you can calculate the area-averaged velocity in each isosurface using the appropriate CFD Post or Fluent function.
Once you have calculated the area-averaged velocity in each isosurface, you can multiply it by the z value of that surface to get the answer for that surface.Add up for all the surfaces to get the total.
Hope you find it useful.
Thank you.
-
April 14, 2023 at 10:10 am
Duncan Law
SubscriberThanks SRP! How would I be able to script any loops? Is there a way to write code that can access the Fluent variables?
-
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
-
5454
-
3417
-
2473
-
1310
-
1022
© 2023 Copyright ANSYS, Inc. All rights reserved.