Add support for tensor detection for CGNS reader
According to CGNS standard notation, tensor can be detected from the end of components names
For instance, the Reynolds stress symmetric tensor follow this rule:
Name | Physical quantity | Units |
---|---|---|
ReynoldsStressXX | Reynolds stress −ρ(u′u′)ave | M/(LT2) |
ReynoldsStressXY | Reynolds stress −ρ(u′v′)ave | M/(LT2) |
ReynoldsStressXZ | Reynolds stress −ρ(u′w′)ave | M/(LT2) |
ReynoldsStressYY | Reynolds stress −ρ(v′v′)ave | M/(LT2) |
ReynoldsStressYZ | Reynolds stress −ρ(v′w′)ave | M/(LT2) |
ReynoldsStressZZ | Reynolds stress −ρ(w′w′)ave | M/(LT2) |
The expected behavior of CGNS reader would be to detect that component ends with: XX XY XZ YY YZ ZZ (for symmetric tensor)
A leading underscore could also be supported even if it is out of the standard scope.
If YX or ZX is found, it would mean that the tensor is not symmetric.
Support of tensor in CGNS is really a must have for people doing turbulence modeling.
Edited by Mickael PHILIT