valib
Vortex Analysis LIBrary
Loading...
Searching...
No Matches
qwcriterion.h
Go to the documentation of this file.
1
5#ifndef VA_QWCRITERION_H
6#define VA_QWCRITERION_H
7
8#include "qcriterion_common.h"
9
10/***************************************************************************/
48VA_DEVICE_FUN void valib_qwcriterion(VA_REAL *A, VA_REAL *qw_criterion)
49{
50 VA_REAL SO[9]; // symmetric (upper triangle) and antisymmetric
51 // (lower triangle) parts of velocity gradient
52
53 // copy A to SO
54 valib_mat_copy3(A, SO);
55
56 // find the deviatoric part of A
58
59 // evaluate Q_M = 1/2 (||Omega||_F^2 - 6/5 ||S_D||_F^2)
60 valib_qcriterion_blending(SO, 1.2, qw_criterion);
61}
62
63#endif // VA_QWCRITERION_H
VA_DEVICE_FUN void valib_qwcriterion(VA_REAL *A, VA_REAL *qw_criterion)
-criterion
Definition qwcriterion.h:48
VA_DEVICE_FUN void valib_qcriterion_blending(VA_REAL *SO, VA_REAL blending_ratio, VA_REAL *qcriterion_blended)
VA_DEVICE_FUN void valib_deviatorise3(VA_REAL *A)
Definition linalg3.h:441
VA_DEVICE_FUN void valib_mat_copy3(VA_REAL *A, VA_REAL *B)
Definition linalg3.h:340