Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
lambda2.h File Reference

Go to the source code of this file.

Macros

#define ROTATE(a, i, j, k, l)
 

Functions

static void eigsrt (double d[2], double v[2][2])
 
void eigenvalues (double a[2][2], double d[2], double v[2][2])
 eigenvalues: : a symmetric matrix.
 
void lambda2 (const vector u, scalar l2)
 

Macro Definition Documentation

◆ ROTATE

#define ROTATE (   a,
  i,
  j,
  k,
  l 
)
Value:
{\
g=a[i][j];h=a[k][l];a[i][j]=g-s*(h+g*tau);a[k][l]=h+s*(g-h*tau);}
vector g[]
We store the combined pressure gradient and acceleration field in g*.
Definition all-mach.h:65
const vector a
Definition all-mach.h:59
scalar h[]
Definition atmosphere.h:6
define k
define l
int x
Definition common.h:76
scalar s
Definition embed-tree.h:56
*cs[i, 0, 0] a *[i -1, 0, 0] j
Definition embed.h:88
scalar int i
Definition embed.h:74

Definition at line 27 of file lambda2.h.

Function Documentation

◆ eigenvalues()

void eigenvalues ( double  a[2][2],
double  d[2],
double  v[2][2] 
)

eigenvalues: : a symmetric matrix.

@d: a vector. @v: another matrix.

Fills @d (resp. @v) with the eigenvalues (resp. eigenvectors) of matrix .

Definition at line 39 of file lambda2.h.

References a, assert, b, c, d, dimension, eigsrt(), g, h, i, j, ROTATE, s, t, theta, v, x, and z.

Referenced by lambda2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eigsrt()

static void eigsrt ( double  d[2],
double  v[2][2] 
)
static

Definition at line 3 of file lambda2.h.

References d, dimension, i, j, k, p, and v.

Referenced by eigenvalues().

Here is the caller graph for this function:

◆ lambda2()

void lambda2 ( const vector  u,
scalar  l2 
)

Definition at line 121 of file lambda2.h.

References _i, center_gradient, dimension, eigenvalues(), i, j, k, lambda, s, u, and x.

Here is the call graph for this function: