HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Evaluate the upwind flux for the linear advection-diffusion-reaction model. More...
#include <stdlib.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <mathfunctions.h>
#include <physicalmodels/linearadr.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | LinearADRUpwind (double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t) |
int | LinearADRCenteredFlux (double *fI, double *fL, double *fR, double *uL, double *uR, double *u, int dir, void *s, double t) |
Evaluate the upwind flux for the linear advection-diffusion-reaction model.
Definition in file LinearADRUpwind.c.
int LinearADRUpwind | ( | double * | fI, |
double * | fL, | ||
double * | fR, | ||
double * | uL, | ||
double * | uR, | ||
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Upwinding scheme for linear advection
fI | Computed upwind interface flux |
fL | Left-biased reconstructed interface flux |
fR | Right-biased reconstructed interface flux |
uL | Left-biased reconstructed interface solution |
uR | Right-biased reconstructed interface solution |
u | Cell-centered solution |
dir | Spatial dimension |
s | Solver object of type HyPar |
t | Current solution time |
Definition at line 16 of file LinearADRUpwind.c.
int LinearADRCenteredFlux | ( | double * | fI, |
double * | fL, | ||
double * | fR, | ||
double * | uL, | ||
double * | uR, | ||
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Centered scheme for linear advection
fI | Computed upwind interface flux |
fL | Left-biased reconstructed interface flux |
fR | Right-biased reconstructed interface flux |
uL | Left-biased reconstructed interface solution |
uR | Right-biased reconstructed interface solution |
u | Cell-centered solution |
dir | Spatial dimension |
s | Solver object of type HyPar |
t | Current solution time |
Definition at line 103 of file LinearADRUpwind.c.