TAGGED: udf
-
-
March 30, 2021 at 4:36 pm
y.lin
SubscriberHi, nI was advised that there is a UDF macro 'F_STORAGE_R_N3V(f,thread,SV_WALL_SHEAR)' to return a vector for each face on wall boundaries with components representing the shear stresses in xyz-directions and a macro F_P(f,thread) for the normal forces on surface. I checked the Fluent UDF manual but can't find any description on these two macros. May I get more details on it, such as the description, how to use it, and any examples to use them? nMany Thanks.nAnnen -
March 31, 2021 at 11:03 am
Rob
Forum ModeratorWe don't document all of the macros, and therefore can't give any further guidance on a public forum for those not in the manual. One hint, have a look for the header files as they tend to have comments in which might be useful (note, not all are commented and not all are useful!). n -
March 31, 2021 at 12:14 pm
DrAmine
Ansys EmployeeJust do a quick search on this forum and you will find what we need (Though, we won't comment on any undocumented macro. Others can chime in)n -
March 31, 2021 at 2:13 pm
YasserSelima
SubscriberI have never seen this macro but it actually agree with part of the documentation ... Under cell Macros, There is a Macro C_STORAGE_R ... and in one of the examples, there is a macro F_STORAGE_R .. both of them returns real values. It makes sense that the one returns vector will look a little different. nYou can test it and see if it works or not ... You can calculate the value of the shear stress using the strain macrosnAlso I believe there are similar macros for the face F_DUDX(f,t) for example ... although they are not documented. Try to calculate the shear stress on the wall using the two methods and print them in one line. Then you can make sure this works..nAnd I appreciate if you update us with what you find.n -
March 31, 2021 at 2:21 pm
YasserSelima
SubscriberF_P(f,t) is available for pressure-based solver. n -
March 31, 2021 at 4:45 pm
YasserSelima
SubscriberOne thing I forgot to mention here ... There is an example that integrates the pressure on a surface in the manual .. In Dynamic mesh .. I believe CG Motion .. F_P(f,t) is used in this example.n -
April 1, 2021 at 6:18 am
DrAmine
Ansys EmployeeEdit: removed screenshot from Manual.n -
April 1, 2021 at 6:20 am
DrAmine
Ansys EmployeeF_STORAGE_R_N3V(f,thread,SV_WALL_SHEAR) does store the vector of wall shear stress. Is not documented in the manual as you highlighted. It returns a vector and provides with the wall stress on the facet f of wall thread thread.n
-
Viewing 7 reply threads
- The topic ‘How to access wall shear stress in a UDF’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3697
-
1313
-
1158
-
1085
-
1014
Top Rated Tags
© 2025 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.