|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
E. David Huckaby
Join Date: Mar 2009
Posts: 57
Rep Power: 6 ![]() |
The double dot product operator seems to calculate the incorrect result for when one argument is of class "symmTensor" and the other class "tensor"
I have attached two examples: checkTensor - calculates several operation with symmTensor and tensor's dnsFoamCheckTensor - modification of dnsFoam which calculates S:S, S:D using S of class symmTensor and S of class tensor. Below is some output of dnsFoamCheckTensor S:S S:D S2:S2 S2:D D = grad(U) S = symm(D) S2 = 0.5 (D + D^T) Dave |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2009
Posts: 854
Rep Power: 11 ![]() |
Yes you are quite right there is a bug in the && operators between symmetric and non-symmetric tensors, here is the fix
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Operator Splitting. | Maria. | Main CFD Forum | 5 | September 17, 2005 22:10 |
| Operator precedence | hemph | OpenFOAM | 1 | September 13, 2005 12:40 |
| a math operator in UDF | lichun Dong | FLUENT | 7 | June 18, 2005 22:04 |
| double fabs(double ) | gts | FLUENT | 0 | October 27, 2004 09:51 |
| Double the # of cells->double the computing time? | JB | Main CFD Forum | 13 | April 5, 2002 17:13 |