Compute characteristics calculate components of magnetosonic velocity corresponding to primitive variables p Based upon cfg 7-10-01. More...
#include "decs.h"
Go to the source code of this file.
Macros | |
#define | BOUNDARYSMOOTHER 0 |
#define | SMOOTHFACTOR 2.0 |
whether to use larger vmin/vmax near boundaries to help with large changes in primitive quantities that Riemann solver cannot handle this also can control courant condition to be consistent, unless set IGNORECOURANT 1 More... | |
#define | IGNORECOURANT 0 |
factor by which to make vmin/vmax larger. More... | |
#define | CHECKSOL 0 |
whether to ignore vchar result in courant condition. More... | |
#define | USEGROUPVEL 0 |
whether to use group velocity rather than phase velocity mutually exclusive with CHECKSOL actually doesn't work when va2=1. More... | |
#define | USESASHAREWRITE 1 |
Functions | |
int | vchar (FTYPE *pr, struct of_state *q, int dir, struct of_geom *geom, FTYPE *vmax, FTYPE *vmin, int *ignorecourant) |
Charles believed that near polar axis one should set vmax=vmin=0, but not right since makes flux completely non-diffusive (leads to numerical instabilities) More... | |
int | simplefast (int whichcall, int dir, struct of_geom *geom, struct of_state *q, FTYPE cms2, FTYPE *vmin, FTYPE *vmax) |
Compute characteristics calculate components of magnetosonic velocity corresponding to primitive variables p Based upon cfg 7-10-01.
Definition in file vchar.c.
#define CHECKSOL 0 |
whether to ignore vchar result in courant condition.
Otherwise dt may be controlled by boundary smoother. Ignoring may lead to numerical instabilities. this leads to numerical instabilities! whether to check if phase velocity is >c and limit it to c. not quite right. really phase or group velocity can have independent other components. Other than k direction, can move with different velocity, so not a good comparison
#define IGNORECOURANT 0 |
#define SMOOTHFACTOR 2.0 |
#define USEGROUPVEL 0 |