![]() |
Stellarator-Tools
|
Contains module metrics. More...
Modules | |
module | metrics |
Module for reading in VMEC input and computing metric elements on the SIESTA (sqrt-flux) radial grid. Computes and stores the real-space metric elements, Jacobian based on square root of fluc splined vmec coordinate system. | |
Functions/Subroutines | |
subroutine | metrics::init_metric_elements () |
Initialize the metric elements. | |
subroutine | metrics::set_grid_sizes (mpol_in, ntor_in, nfp_in, tor_modes) |
Set grid sizes. | |
subroutine | metrics::surfavg (average, q3d, nsmin, nsmax) |
Surface average a quantity. | |
subroutine | metrics::loadgrid (istat) |
Load the R, Z and lambda arrays from VMEC. | |
subroutine | metrics::rz_to_ijsp (rmn, zmn, lasym) |
Transform from fourier R Z to real space qauntities. | |
subroutine | metrics::half_mesh_metrics (r1_i, ru_i, rv_i, z1_i, zu_i, zv_i) |
Compute the metric elements on the half mesh. | |
subroutine | metrics::full_mesh_metrics |
Gets the full grid metric elements. | |
subroutine | metrics::check_metrics |
@ brief Test to check that we computed the upper metric elements correctly. | |
subroutine | metrics::toupper (xsubsij, xsubuij, xsubvij, |
Converts to contravariant component full grid. | |
subroutine | metrics::tolowerh (xsupsij, xsupuij, xsupvij, |
Converts to covariant component half grid. | |
subroutine | metrics::tolowerf (xsupsij, xsupuij, xsupvij, |
Converts to covariant component full grid. | |
subroutine | metrics::cleanup_metric_elements |
Deallocate memory containing metric elements on the half mesh. | |
subroutine | metrics::dealloc_full_lower_metrics |
Deallocate memory containing metric elements on the full mesh. | |
Contains module metrics.