TAGGED: ansys-fluent, custom-field-function, udf
-
-
March 13, 2024 at 1:53 pm
scldr
SubscriberIs there any way to define a custom field function or some sort of UDF that does the following:
1) Gets the density across a line/surface and calculates the local maxima
2) Find the point at which the last local maxima occurs (this will be say x = 5cm for example).Â
3) Find the average temperature between x = 0 and where the last maxima occurs (x = 5) on the same line/surface
I'm not sure if this is possible but would love to know if there is a way to do it.
-
March 13, 2024 at 4:29 pm
Rob
Forum ModeratorYou can create a line and then use a report to find min/max/mean etc. That can also be plotted & exported for further processing outside Fluent.Â
-
March 13, 2024 at 4:35 pm
scldr
SubscriberHi Rob,
I'm currently doing this outside Fluent by exporting the XY data and post-processing in MATLAB. I was just wondering If i could do this internally in Fluent, but I dont think I can?
-
March 13, 2024 at 5:18 pm
Rob
Forum ModeratorYou'll get mean/min/max from the Reports but finding the location of that may be a bit manual. However, writing the xy plot out for a scripted MATLAB or similar workflow is more initial work but possibly better overall. I suspect Minerva or the like can do the same, but if you have a MATLAB script it may not be worth changing.Â
-
- The topic ‘Custom Field Function’ is closed to new replies.
-
3387
-
1052
-
1050
-
886
-
852
© 2025 Copyright ANSYS, Inc. All rights reserved.