CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Reynolds Stresses' Gradients

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2019, 18:20
Lightbulb Reynolds Stresses' Gradients
  #1
Member
 
Farzin
Join Date: Jul 2014
Posts: 42
Rep Power: 12
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.

Thanks,
Farzin


Related Topic: https://studentcommunity.ansys.com/t...ostbadges=true
FarzinD is offline   Reply With Quote

Old   September 21, 2019, 07:10
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
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 :

Code:
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

Reply

Tags
reynolds stress, rsm, turbulence, udf


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
Scaling the Reynolds stresses via UDF Markus FLUENT 1 November 11, 2022 13:44
UPrime2Mean calculation of Reynolds stresses MarijaB OpenFOAM Post-Processing 0 June 15, 2018 21:19
How do we calculate the normal Reynolds stresses? (Linear eddy viscosity models) userid42 Main CFD Forum 8 August 28, 2017 14:11
Reynolds stresses without velocity correlations? Phil Main CFD Forum 1 October 2, 2006 05:29
Reynolds stresses and second law JF Main CFD Forum 6 June 2, 2005 23:57


All times are GMT -4. The time now is 12:36.