diagnostics_velocity_space Module

A module which writes out quantities which writes out diagnostic quantities which assess whether the velocity space resolution is sufficient.


Contents


Subroutines

public subroutine init_diagnostics_velocity_space(gnostics)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
type(diagnostics_type), intent(inout) :: gnostics

FIXME : Add documentation

Arguments

None

public subroutine write_velocity_space_checks(gnostics)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
type(diagnostics_type), intent(in) :: gnostics

public subroutine write_collision_error(gnostics)

Calculate and write the collision error

Arguments

Type IntentOptional Attributes Name
type(diagnostics_type), intent(in) :: gnostics

public subroutine collision_error(unit, phi, bpar)

Calculate the collision error and write to text file <runname>.cres

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit
complex, intent(in), dimension(-ntgrid:, :, :) :: phi
complex, intent(in), dimension(-ntgrid:, :, :) :: bpar

public subroutine get_verr(errest, erridx, phi, bpar)

Error estimate obtained by comparing standard integral with less-accurate integral

Read more…

Arguments

Type IntentOptional Attributes Name
real, intent(out), dimension (5,2) :: errest

Estimated error.

integer, intent(out), dimension (5,3) :: erridx

Indices of maximum error.

complex, intent(in), dimension (-ntgrid:,:,:) :: phi

Electrostatic potential and parallel magnetic field

complex, intent(in), dimension (-ntgrid:,:,:) :: bpar

Electrostatic potential and parallel magnetic field

private subroutine estimate_error(app1, app2, kmax_local, errest, erridx, trap)

FIXME : Add documentation

Arguments

Type IntentOptional Attributes Name
complex, intent(in), dimension (-ntgrid:,:,:) :: app1
complex, intent(in), dimension (-ntgrid:,:,:,:) :: app2
real, intent(in), dimension (:, :) :: kmax_local
real, intent(out), dimension (:) :: errest
integer, intent(out), dimension (:) :: erridx
logical, intent(in), optional :: trap

public subroutine get_gtran(geavg, glavg, gtavg, phi, bpar)

Error estimate based on monitoring amplitudes of legendre polynomial coefficients.

Read more…

Arguments

Type IntentOptional Attributes Name
real, intent(out) :: geavg
real, intent(out) :: glavg
real, intent(out) :: gtavg
complex, intent(in), dimension (-ntgrid:,:,:) :: phi
complex, intent(in), dimension (-ntgrid:,:,:) :: bpar