ppmpy.eigen module#
Construct the eigenvalues and eigenvectors of the primitive variable form of the Euler equations.
- eigen(rho, u, p, gamma)[source]#
Compute the left and right eigenvectors and the eigenvalues for the Euler equations.
- Parameters:
rho (ndarray) – density
u (ndarray) – velocity
p (ndarray) – pressure
gamma (float) – ratio of specific heats
- Returns:
ev (ndarray) – array of eigenvalues
lvec (ndarray) – matrix of left eigenvectors, lvec(iwave, :) is the eigenvector for wave iwave
rvec (ndarray) – matrix of right eigenvectors, rvec(iwave, :) is the eigenvector for wave iwave