How do we write code for mean of reynolds stress tensor?
In TKE equation, the production term consists of reynolds stress tensor multiplied by strain rate ?
The production term in tensor form =  <u_i u_j>*dU_i/dx_j ; here u=fluctuating component; U= mean component; d=partial derivative operator While writing code for the TKE equation, do I have to add all the 9 components of the stress tensor and then average it over time ? Production term: u'u' dU/dx + u'v'dU/dy + u'w'dU/dz + v'u'dV/dx + v'v'dV/dy + v'w'dV/dz + u'w'dW/dx + v'w'dW/dy + w'w'dW/dz where U= U(x,y,z) and u'= u'(x,y,z,t) Is this representation correct? 
Yes the summation is correct. You do not need to time average because all the variables are already averaged. You can take the timeaverage. You'll just find out it doesn't do anything.
Maybe you got lazy and dropped the notation but if <> represents reynolds averaging then you should have: Quote:

Thank you for the prompt reply. I will do that.
Regarding the <> for every element, I forgot to put that. :) 
All times are GMT 4. The time now is 03:11. 