CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Reynolds Stresses' Gradients

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2019, 17:20
Lightbulb Reynolds Stresses' Gradients
Join Date: Jul 2014
Posts: 42
Rep Power: 9
FarzinD is on a distinguished road
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.


Related Topic:
FarzinD is offline   Reply With Quote

Old   September 21, 2019, 06:10
Senior Member
Join Date: Nov 2013
Posts: 1,969
Rep Power: 24
pakk will become famous soon enough
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 :

float temp[ND_ND];
temp = C_RUU_G(c, t);
Whatever = temp[0] ;
Not tested, but I hope this helps anyway.
pakk is offline   Reply With Quote


reynolds stress, rsm, turbulence, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Scaling the Reynolds stresses via UDF Markus FLUENT 0 January 23, 2008 05:49
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

All times are GMT -4. The time now is 06:45.