flux_surface_average Subroutine

public subroutine flux_surface_average(comm, mesh, polars, u, u_fluxsrf_av)

Computes zonal average of quantity

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: comm

MPI-communicator

type(mesh_cart_t), intent(in) :: mesh

Mesh within poloidal plane

type(polars_t), intent(in) :: polars

Polar grid and matrices

real(kind=GP), intent(in), dimension(mesh%get_n_points()) :: u

Values of field on Cartesian mesh

real(kind=GP), intent(out), dimension(polars%grid%get_nrho() ) :: u_fluxsrf_av

Surface average of quantity


Contents