|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Farzin
Join Date: Jul 2014
Posts: 42
Rep Power: 12 ![]() |
Dear all,
While it is possible to access Reynolds Stresses C_RUU(c,t), C_RUV(c,t), ... when writing a UDF, the documentation is not clear on how we may access the gradients of RS components and the common gradient form (C_RUU_G(c,t)[0],...) does not work. There is an undocumented array "C_RST_G(c,t,i)" which does not work as well. I am wondeing if RS gradients are stored at all. I would appreciate any help on this. Thanks, Farzin Related Topic: https://studentcommunity.ansys.com/t...ostbadges=true |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 26 ![]() |
The code "C_RUU_G(c,t)[0]" is conceptually a good idea, but is not correct grammar in the version of c that fluent uses. In newer versions it should (I think) work, so your attempt is not so crazy.
What to do: use a temporary intermediate variable : Code:
float temp[ND_ND]; temp = C_RUU_G(c, t); Whatever = temp[0] ; |
|
![]() |
![]() |
![]() |
Tags |
reynolds stress, rsm, turbulence, udf |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scaling the Reynolds stresses via UDF | Markus | FLUENT | 1 | November 11, 2022 12:44 |
UPrime2Mean calculation of Reynolds stresses | MarijaB | OpenFOAM Post-Processing | 0 | June 15, 2018 20:19 |
How do we calculate the normal Reynolds stresses? (Linear eddy viscosity models) | userid42 | Main CFD Forum | 8 | August 28, 2017 13:11 |
Reynolds stresses without velocity correlations? | Phil | Main CFD Forum | 1 | October 2, 2006 04:29 |
Reynolds stresses and second law | JF | Main CFD Forum | 6 | June 2, 2005 22:57 |