CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 1 of 1
Search took 0.00 seconds.
Search: Posts Made By: eugene
Forum: OpenFOAM Running, Solving & CFD September 23, 2010, 11:06
Replies: 1
Views: 1,518
Posted By eugene
If you want the sum of the diagonal elements...

If you want the sum of the diagonal elements then:

volScalarField trTmp = tr(tmp);

If you just want the diagonal components, then

tmp.xx()
tmp.yy()
tmp.zz()
Showing results 1 to 1 of 1

 
Forum Jump

All times are GMT -4. The time now is 21:00.