HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Function to evaluate the advection term in the linear advection-diffusion-reaction model. More...
#include <stdlib.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/linearadr.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
int | LinearADRAdvection (double *f, double *u, int dir, void *s, double t) |
Function to evaluate the advection term in the linear advection-diffusion-reaction model.
Definition in file LinearADRAdvection.c.
int LinearADRAdvection | ( | double * | f, |
double * | u, | ||
int | dir, | ||
void * | s, | ||
double | t | ||
) |
Evaluate the advection term in the linear advection-diffusion-reaction model:
Compute
\begin{equation} a_d u \end{equation}
given \(u\) and \(d\) in the hyperbolic term
\begin{equation} \sum_d \frac {\partial} {\partial x_d} \left( a_d u \right) \end{equation}
f | Array to hold the computed flux (same size and layout as u) |
u | Array containing the solution |
dir | Spatial dimension \(d\) |
s | Solver object of type HyPar |
t | Current time |
Definition at line 37 of file LinearADRAdvection.c.