-
-
November 18, 2024 at 11:30 pmnobrienSubscriber
Hello! I am using Steady Statistics in a fluent simulation, and I'd like to access those statistics in a UDF. I know I can use C_STORAGE_R(c,t,SV_U_MEAN), for example, to access the sum of values for the x-velocity at the cell 'c', but I need the mean value of that x-velocity. The udf guide says to find a scheme variable, "delta-time-sampled", to calculate the proper mean, but my simulation is steady state. Is there a scheme variable that holds onto the number of iterations that was sampled to produce the values held in SV_*_MEAN variables? Thanks!
-
November 19, 2024 at 3:49 pmnobrienSubscriber
I realized that I can use that scheme variable to get the number of sampled iterations for steady-state too. Just needed to try it!
Summary: real n_iterations_sampled = RP_Get_Real("delta-time-sampled"); mean_vel_x = C_STORAGE_R(c,t,SV_U_MEAN)/n_iterations_sampled;
I also think this link would be helpful for others looking at this problem: https://innovationspace.ansys.com/forum/forums/topic/is-there-any-specific-procedure-to-implement-time-averaged-udf/
-
- The topic ‘UDF, Fluent: Access count of iterations for “Steady Statistics”’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Script Error
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
- Running ANSYS Fluent on a HPC Cluster
- Point exception in erosion calculation
-
1882
-
802
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.