78 #if (PHYSICS == MHD || PHYSICS == RMHD) && (UPDATE_VECTOR_POTENTIAL == YES)
87 double scrh, dt, sEz = 0.25;
96 if (vp == NULL)
return;
99 #if GEOMETRY == CYLINDRICAL
108 #if TIME_STEPPING == RK2
110 #elif TIME_STEPPING == RK3
137 Ez = sEz*(emf->
ez[
k][
j][
i] + emf->
ez[
k][j-1][
i] +
138 emf->
ez[
k][j-1][i-1] + emf->
ez[
k][
j][i-1]);
141 Ex = 0.25*(emf->
ex[
k][
j][
i] + emf->
ex[
k][j-1][
i] +
142 emf->
ex[k-1][j-1][
i] + emf->
ex[k-1][
j][
i]);
144 Ey = 0.25*(emf->
ey[
k][
j][
i] + emf->
ey[
k][
j][i-1] +
145 emf->
ey[k-1][
j][i-1] + emf->
ey[k-1][
j][
i]);
double ** flux
upwind flux computed with the Riemann solver
int g_intStage
Gives the current integration stage of the time stepping method (predictor = 0, 1st corrector = 1...
double g_dt
The current integration time step.
double *** Ax3
Vector potential component in the direction.
int g_i
x1 grid index when sweeping along the x2 or x3 direction.
int g_dir
Specifies the current sweep or direction of integration.
int g_j
x2 grid index when sweeping along the x1 or x3 direction.
int g_k
x3 grid index when sweeping along the x1 or x2 direction.
void VectorPotentialUpdate(const Data *d, const void *vp, const State_1D *state, const Grid *grid)
double *** Ax1
Vector potential component in the direction.
double *** Ax2
Vector potential component in the direction.