|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Contains the function to compute maximum CFL over the domain for the Vlasov equations. 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 *, int, void *) |
| double | VlasovComputeCFL (void *s, void *m, double dt, double t) |
Contains the function to compute maximum CFL over the domain for the Vlasov equations.
Definition in file VlasovComputeCFL.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.
| double VlasovComputeCFL | ( | void * | s, |
| void * | m, | ||
| double | dt, | ||
| double | t | ||
| ) |
Computes the maximum CFL number over the domain. Note that the CFL is computed over the local domain on this processor only.
| s | Solver object of type HyPar |
| m | MPI object of type MPIVariables |
| dt | Time step size for which to compute the CFL |
| t | Time |
Definition at line 19 of file VlasovComputeCFL.c.