V3FIT
|
BMW is a code for extending fields belond the VMEC domain in a manner that ensures divergence free fields. BMW does a Biot-Savart volume integration of of the equilibrium current density to obtain a continous vector potential every where on the mgrid grid. More...
Functions/Subroutines | |
subroutine | bmw_exec (mgrid_file_name, wout_file_name, r_grid, z_grid, dphi, surf_num, A_r, A_p, A_z) |
BMW main program. More... | |
BMW is a code for extending fields belond the VMEC domain in a manner that ensures divergence free fields. BMW does a Biot-Savart volume integration of of the equilibrium current density to obtain a continous vector potential every where on the mgrid grid.
Below is a brief discription of the major top level objects of the code. For discriptions of lower level objects consult the referenced top level objects.
m_grid Object containing the vaccum field information. primed_grid Object containing the plasma currents and primed grid positions. unprimed_grid Object containing the plasma vector potential response. bmw_context Defines the main pointers to all allocated memory and objects.
subroutine bmw_run::bmw_exec | ( | character (len=*), intent(in) | mgrid_file_name, |
character (len=*), intent(in) | wout_file_name, | ||
real (rprec), dimension(:,:,:), intent(in) | r_grid, | ||
real (rprec), dimension(:,:,:), intent(in) | z_grid, | ||
real (rprec), intent(in) | dphi, | ||
integer, intent(in) | surf_num, | ||
real (rprec), dimension(:,:,:), intent(out) | A_r, | ||
real (rprec), dimension(:,:,:), intent(out) | A_p, | ||
real (rprec), dimension(:,:,:), intent(out) | A_z | ||
) |
BMW main program.
Highest level BMW routine. This computes the vector potential on the mgrid grid.
[in] | mgrid_file_name | Path to the mgrid file. |
[in] | wout_file_mame | Path to the wout file. |
[in] | r_grid | Radial grid points to compute the vector potential on. |
[in] | z_grid | Vertial grid points to compute the vector potential on. |
[in] | dphi | Grid size in the phi direction. |
[in] | surf_num | Surface index of the last surface. |
[out] | A_r | Vector potential in the cyclindical R direction. |
[out] | A_p | Vector potential in the cyclindical Phi direction. |
[out] | A_z | Vector potential in the cyclindical Z direction. |