valib
Vortex Analysis LIBrary
delta.h
1
5
#ifndef VA_DELTA_H
6
#define VA_DELTA_H
7
8
#include "common_defs.h"
9
#include "linalg3.h"
10
11
/***************************************************************************/
49
VA_DEVICE_FUN
void
valib_delta
(VA_REAL *A, VA_REAL *delta)
50
{
51
VA_REAL Q, R;
52
53
// find second invariant
54
valib_second_invariant3
(A, &Q);
55
56
// find third invariant (determinant)
57
valib_determinant3
(A, &R);
58
59
// determine delta
60
*delta = Q*Q*Q / (VA_REAL) 27. + R*R / (VA_REAL) 4.;
61
}
62
63
#endif // VA_DELTA_H
valib_determinant3
VA_DEVICE_FUN void valib_determinant3(VA_REAL *A, VA_REAL *det)
Definition:
linalg3.h:293
valib_delta
VA_DEVICE_FUN void valib_delta(VA_REAL *A, VA_REAL *delta)
-criterion
Definition:
delta.h:49
valib_second_invariant3
VA_DEVICE_FUN void valib_second_invariant3(VA_REAL *A, VA_REAL *second_invariant)
Definition:
linalg3.h:282
include
delta.h
Generated by
1.8.17