V3FIT
Functions/Subroutines
bmw_run Module Reference

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...
 

Detailed Description

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.

Author
Mark Cianciosa

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.

Function/Subroutine Documentation

◆ bmw_exec()

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.

Parameters
[in]mgrid_file_namePath to the mgrid file.
[in]wout_file_mamePath to the wout file.
[in]r_gridRadial grid points to compute the vector potential on.
[in]z_gridVertial grid points to compute the vector potential on.
[in]dphiGrid size in the phi direction.
[in]surf_numSurface index of the last surface.
[out]A_rVector potential in the cyclindical R direction.
[out]A_pVector potential in the cyclindical Phi direction.
[out]A_zVector potential in the cyclindical Z direction.

Definition at line 59 of file bmw_run.f.