HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to compute the hyperbolic flux Jacobian for the linear advection-diffusion-reaction system. More...
Go to the source code of this file.
Functions | |
int | LinearADRAdvectionJacobian (double *Jac, double *u, void *p, int dir, int nvars, int upw) |
int | LinearADRDiffusionJacobian (double *Jac, double *u, void *p, int dir, int nvars) |
Function to compute the hyperbolic flux Jacobian for the linear advection-diffusion-reaction system.
Definition in file LinearADRJacobian.c.
int LinearADRAdvectionJacobian | ( | double * | Jac, |
double * | u, | ||
void * | p, | ||
int | dir, | ||
int | nvars, | ||
int | upw | ||
) |
Function to compute the flux Jacobian for the hyperbolic (advection) part of the linear-advection-diffusion-reaction model.
Jac | Jacobian matrix of size 1 (nvar = 1) |
u | solution at a grid point |
p | object containing physics-related parameters |
dir | dimension (x/y/z) |
nvars | number of components |
upw | 0 -> send back complete Jacobian, 1 -> send back Jacobian of right(+)-moving flux, -1 -> send back Jacobian of left(-)-moving flux |
Definition at line 11 of file LinearADRJacobian.c.
int LinearADRDiffusionJacobian | ( | double * | Jac, |
double * | u, | ||
void * | p, | ||
int | dir, | ||
int | nvars | ||
) |
Function to compute the Jacobian for the parabolic (diffusion) part of the linear-advection-diffusion-reaction model.
Jac | Jacobian matrix of size 1 (nvar = 1) |
u | solution at a grid point |
p | object containing physics-related parameters |
dir | dimension (x/y/z) |
nvars | number of components |
Definition at line 36 of file LinearADRJacobian.c.