TAGGED: report-definitions, udf-fluent, udmi
-
-
May 19, 2022 at 9:21 am
Sayantan Biswas
SubscriberI'm working on Euler-Euler two-fluid (water-air system) transient simulation. I wish to store number the number of numerical cells which satisfy a specified condition. For example when the liquid TKE magnitude is greater than 0.001 and less than 0.003, store such number of cells (total number) at every time step.
For this purpose, I'm using Define ADJUST macro.
if (C_K(cell,pt[0])>0.001 && C_K(cell,pt[0])<=0.003)
{ C_UDMI(cell,cell_threads,0)=1; /assign value 1 to all such cells that satisfy the above conditions, and storing in a UDMI, 0 represent water, 1 represent air*/
}
else
C_UDMI(cell,cell_threads,1)=0;
Now, I have created a report definition, 'Sum' of CUDMI 0. What I expect, if at any time instant lets say there are 100 cells which satisfied the mentioned condition, '1' will be assigned to those cells and stored in UDMI, now, summing UDMI will write 100 in the output file i.e. total number of such numerical cells.
However, implementing this, the value is continuously increasing as time progress.
Is this approach incorrect? How do I store number of cells which satisfy certain conditions? I want to plot the time evolution of such number of cells.
May 25, 2022 at 12:15 pmKarthik R
AdministratorHello Are you resetting this UDMI to 0 every timestep?
Karthik
Viewing 1 reply thread- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost 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.
Trending discussions- 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
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Contributors-
3930
-
2649
-
1865
-
1272
-
610
Top Rated Tags© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-