CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   kEpsilon::R(), what does it do? (http://www.cfd-online.com/Forums/openfoam-programming-development/124014-kepsilon-r-what-does-do.html)

sharonyue September 25, 2013 23:57

kEpsilon::R(), what does it do?
 
Hi guys,

In kEpsilon.C and kEpsilon.H. we can find kEpsilon::R() return the Reynolds stress tensor. but in K and Epsilon equation, we dont use this function:"kEpsilon::R()". in the solver, it is not be called either. so can I just delete it?:eek::eek:

Bernhard September 26, 2013 02:14

In running case, you can in in principle delete it indeed. I suppose it is there for consistency, completeness and the possibility for future implementations. E.g, the utility "R" uses exactly the definition over there to calculate and write the Reynolds stresses. I think all RANS models have a function to return the Reynolds stress.

sharonyue September 26, 2013 02:21

Quote:

Originally Posted by Bernhard (Post 453632)
In running case, you can in in principle delete it indeed. I suppose it is there for consistency, completeness and the possibility for future implementations. E.g, the utility "R" uses exactly the definition over there to calculate and write the Reynolds stresses. I think all RANS models have a function to return the Reynolds stress.

Cool, very clear, Thanks!!Bernhard.


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