HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the functions to compute left and right eigenvectors for the 1D shallow water equations. More...
#include <stdlib.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <physicalmodels/shallowwater1d.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | ShallowWater1DLeftEigenvectors (double *u, double *L, void *p, int dir) |
int | ShallowWater1DRightEigenvectors (double *u, double *R, void *p, int dir) |
Contains the functions to compute left and right eigenvectors for the 1D shallow water equations.
Definition in file ShallowWater1DEigen.c.
int ShallowWater1DLeftEigenvectors | ( | double * | u, |
double * | L, | ||
void * | p, | ||
int | dir | ||
) |
Compute the left eigenvections for the 1D shallow water equations. This function just calls the macro _ShallowWater1DLeftEigenvectors_ and is not used by any functions within the 1D shallow water module. However, it's necessary to define it and provide it to the the solver object (HyPar) so that it can then send it to interpolation functions for a characteristic-based reconstruction.
u | Conserved solution at a grid point |
L | Array of size nvar^2 = 2^2 to save the matrix of left eigenvectors in (row-major format). |
p | Object of type ShallowWater1D with physics-related variables |
dir | Spatial dimension (not used, since this is a 1D system) |
Definition at line 19 of file ShallowWater1DEigen.c.
int ShallowWater1DRightEigenvectors | ( | double * | u, |
double * | R, | ||
void * | p, | ||
int | dir | ||
) |
Compute the right eigenvections for the 1D shallow water equations. This function just calls the macro _ShallowWater1DRightEigenvectors_ and is not used by any functions within the 1D shallow water module. However, it's necessary to define it and provide it to the the solver object (HyPar) so that it can then send it to interpolation functions for a characteristic-based reconstruction.
u | Conserved solution at a grid point |
R | Array of size nvar^2 = 2^2 to save the matrix of right eigenvectors in (row-major format). |
p | Object of type ShallowWater1D with physics-related variables |
dir | Spatial dimension (not used, since this is a 1D system) |
Definition at line 38 of file ShallowWater1DEigen.c.