diagnostics_printout Module

A module for printing summary information to stdout during the simulation


Contents


Variables

Type Visibility Attributes Name Initial
character(len=*), private, parameter :: flux_format = "('t= ', e17.10, ' <', a, '**2>= ', e13.6, ' ', a, ':', *(1x, e13.6))"

Format string for writing fluxes to screen/text


Subroutines

public subroutine print_line(gnostics)

Print out growth rates to screen. Doesn't quite conform to the principle of having all useful results stored in gnostics... takes stuff straight from diagnostics_omega

Arguments

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

public subroutine write_line(gnostics)

Print growth rates to run_name.new.out

Arguments

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

private subroutine output_line(gnostics, outunit)

Write growth rates to given unit

Arguments

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

Pre-existing opened unit

public subroutine write_flux_line(gnostics)

Print instantaneous heat fluxes to run_name.new.out

Arguments

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

public subroutine print_flux_line(gnostics)

Print instantaneous heat fluxes to screen

Arguments

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

private subroutine output_flux_line(gnostics, outunit)

Write instantaneous heat fluxes to given unit

Read more…

Arguments

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

public subroutine write_phi_fluxes_to_unit(unit, time, phi2, heat_fluxes, energy_exchange, part_fluxes, mom_fluxes, lfmom_fluxes, vflux1_avg, use_lowflow)

Write instantaneous fluxes from electrostatic potential to screen or file

Arguments

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

An existing, open unit

real, intent(in) :: time

Current simulation time

real, intent(in) :: phi2

Averaged amplitude squared of electrostatic potential

real, intent(in), dimension(:) :: heat_fluxes

Heat flux due to electrostatic potential

real, intent(in), dimension(:) :: energy_exchange

Energy exchange -- see dist_fn

real, intent(in), optional, dimension(:) :: part_fluxes

Particle flux due to electrostatic potential

real, intent(in), optional, dimension(:) :: mom_fluxes

Momentum flux due to electrostatic potential

real, intent(in), optional, dimension(:) :: lfmom_fluxes

"Low flow" momentum flux due to electrostatic potential

real, intent(in), optional, dimension(:) :: vflux1_avg

FIXME: Add documentation (some other low-flow flux term)

logical, intent(in), optional :: use_lowflow

If true, write the low-flow momentum fluxes

public subroutine write_fluxes_to_unit(unit, time, field, field_name, heat_fluxes, part_fluxes)

Write instantaneous heat and particle fluxes to screen/file

Read more…

Arguments

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

An existing, open unit

real, intent(in) :: time

Current simulation time

real, intent(in) :: field

Average amplitude squared of the parallel magnetic potential

character(len=*), intent(in) :: field_name

Name of the field

real, intent(in), dimension(:) :: heat_fluxes

Heat flux due to A//

real, intent(in), optional, dimension(:) :: part_fluxes

Particle flux due to A//