Weighted average
Hi, I have to get the weighted average of the cells values on a surface that I create in Fluent in post-processing. How can I get it with a UDF?
And If I create the surface where I want to calculate the surface weighted average of my UDM on ICEM, how can I get the value with a UDF?
Answers
UDFs don't see the post processing planes, but reports do. What are you doing with the data as Expressions and Reports may be sufficient.
ICEM CFD is separate to Fluent so I don't follow how you plan on using UDFs there.
@Rob so if I have an expressions for the cells, I would be able to save it in my dat file? I thought I can't! How can I?
With 21R1 Expression spatial field are available for post processing. Rob was talking about reports and expression based report which you would not post process. Accessing post processing planes in UDF is very complex and is not easy-to-use.
@DrAmine Thanks for the info. Probably I will update my version soon. This would save lots of post processing time
Currently Custom Field Functions do that, and they are saved to the case. If you post process in Fluent they're available there and are calculated when needed. Expressions are fairly new to Fluent (it's CFX technology) and their functionality is increasing with each release.
CFFs are the "old" Fluent function and combining those with reports, parameters etc and now expressions means we can do a lot without UDFs. This can mean the answer we gave 6 months ago has since been superseded hence reading the manuals & release notes is recommended.
Great!
Thank you.