HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Returns the advection coefficient at a given grid index. More...
#include <float.h>
#include <math.h>
#include <basic.h>
#include <arrayfunctions.h>
#include <physicalmodels/vlasov.h>
#include <mpivars.h>
#include <hypar.h>
Go to the source code of this file.
Functions | |
double | VlasovAdvectionCoeff (int *idx, int dir, void *s) |
Returns the advection coefficient at a given grid index.
Definition in file VlasovAdvectionCoeff.c.
double VlasovAdvectionCoeff | ( | int * | idx, |
int | dir, | ||
void * | s | ||
) |
Returns the advection coefficient at a given grid index \(c\), where
\begin{equation} c = v_i, \end{equation}
if dir < Vlasov::ndims_x ( \(i = {\rm dir}\)), and
\begin{equation} c = E_i, \end{equation}
the electric field if dir >= Vlasov::ndims_x ( \(i = \) dir-Vlasov::ndims_x).
Note: this function assumes that the electric field has already been set.
idx | grid index |
dir | Spatial dimension |
s | Solver object of type HyPar |
Definition at line 28 of file VlasovAdvectionCoeff.c.