|
PLUTO
|
Compute magnetic field from vector potential. More...
#include "pluto.h"
Go to the source code of this file.
Compute magnetic field from vector potential.
The function VectorPotentialDiff() computes either staggered or cell-center magnetic field components by suitable central differencing of the vector potential,
.
For cell-centered MHD vector potential is compute at the cell-center. In the case of staggered MHD, the position of A is edge-centered and it is shown below:
______________________
/ /|
/ / |
/ z face / |
/ Ax |
/ / |
/ / Az
----------Ay----------- |
| | |
| | y |
| | face |
| | /
Az x face Az /
| | Ax
| | /
| | /
| |/
----------Ay-----------
Definition in file vec_pot_diff.c.