PLUTO
|
#include "pluto.h"
Go to the source code of this file.
Functions | |
void | MaxSignalSpeed (double **v, double *cs2, double *cmin, double *cmax, int beg, int end) |
void | PrimEigenvectors (double *q, double cs2, double h, double lambda[], double **LL, double **RR) |
void | PrimToChar (double **L, double *v, double *w) |
void MaxSignalSpeed | ( | double ** | v, |
double * | cs2, | ||
double * | cmin, | ||
double * | cmax, | ||
int | beg, | ||
int | end | ||
) |
Compute the maximum and minimum characteristic velocities for the HD equation from the vector of primitive variables v.
[in] | v | 1-D array of primitive variables |
[in] | cs2 | 1-D array containing the square of the sound speed |
[out] | cmin | 1-D array containing the leftmost characteristic |
[out] | cmin | 1-D array containing the rightmost characteristic |
[in] | beg | starting index of computation |
[in] | end | final index of computation |
Definition at line 4 of file eigenv.c.
void PrimEigenvectors | ( | double * | q, |
double | cs2, | ||
double | h, | ||
double | lambda[], | ||
double ** | LL, | ||
double ** | RR | ||
) |
void PrimToChar | ( | double ** | L, |
double * | v, | ||
double * | w | ||
) |
Compute the matrix-vector multiplcation between the the L matrix (containing primitive left eigenvectors) and the vector v. The result containing the characteristic variables is stored in the vector w = L.v
For efficiency purpose, multiplication is done explicitly, so that only nonzero entries of the left primitive eigenvectors are considered.
[in] | L | Left eigenvectors |
[in] | v | (difference of) primitive variables |
[out] | w | (difference of) characteristic variables |
Compute the matrix-vector multiplcation between the the L matrix (containing primitive left eigenvectors) and the vector v. The result containing the characteristic variables is stored in the vector w = L.v
For efficiency purpose, multiplication is done explicitly, so that only nonzero entries of the left primitive eigenvectors are considered.
[in] | Lp | Left eigenvectors |
[in] | v | (difference of) primitive variables |
[out] | w | (difference of) characteristic variables |
Definition at line 367 of file eigenv.c.