HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the function to compute the hyperbolic flux for the Burgers equations over the domain. More...
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/burgers.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | BurgersAdvection (double *f, double *u, int dir, void *s, double t) |
Contains the function to compute the hyperbolic flux for the Burgers equations over the domain.
Definition in file BurgersAdvection.c.
int BurgersAdvection | ( | double * | f, |
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Compute the hyperbolic flux over the local domain.
\begin{equation} {\bf F}\left({\bf u}\right) = 0.5 {\bf u}^2 \end{equation}
f | Array to hold the computed flux (same size and layout as u) |
u | Array containing the conserved solution |
dir | Spatial dimension |
s | Solver object of type HyPar |
t | Current time |
Definition at line 17 of file BurgersAdvection.c.