libPostprocess Module

Procedures to write out results of simulations



Variables

Type Visibility Attributes Name Initial
character(len=8), public :: ResultsDir = 'Results/'

Subroutines

public subroutine init_plots(numOfRotors)

Initialise headers for plot files

Arguments

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

public subroutine params2file(rotor, nt, dt, nr, density, velSound, switches)

Write rotor parameters to json file

Arguments

Type IntentOptional Attributes Name
type(rotor_class), intent(in) :: rotor
integer, intent(in) :: nt
real(kind=dp), intent(in) :: dt
integer, intent(in) :: nr
real(kind=dp), intent(in) :: density
real(kind=dp), intent(in) :: velSound
type(switches_class), intent(in) :: switches

public subroutine geom2file(timestamp, rotor, wakeSuppress)

Plot rotor geometry and wake to file

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor
integer, intent(in) :: wakeSuppress

public subroutine probes2file(timestamp, probe, probeVel, rotor, t)

Write velocities at probe locations

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
real(kind=dp), intent(in), dimension(:, :) :: probe
real(kind=dp), intent(in), dimension(:, :) :: probeVel
type(rotor_class), intent(inout), dimension(:) :: rotor
real(kind=dp), intent(in) :: t

public subroutine filaments2file(timestamp, rotor)

Write filaments to file for using with grid-based plots

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in), dimension(:) :: rotor

public subroutine geomSurface2file(rotor)

Plot surface geometry to file

Arguments

Type IntentOptional Attributes Name
type(rotor_class), intent(in) :: rotor

public subroutine tip2file(timestamp, rotor)

Wake tip to file

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor

public subroutine skew2file(timestamp, rotor)

Skew parameter to file

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor

public subroutine force2file(timestamp, rotor)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor

public subroutine dynamics2file(timestamp, rotor)

Rotor dynamics to file

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor

public subroutine inflow2file(timestamp, rotorArray, rotorNumber, directionVector)

Calculate inflow velocity along directionVector on the blades of rotor(rotorNumber) at rotor(rotorNumber)%secCP

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(inout), dimension(:) :: rotorArray
integer, intent(in) :: rotorNumber
real(kind=dp), intent(in), dimension(3) :: directionVector

public subroutine gamma2file(timestamp, rotor)

Calculate inflow velocity along directionVector on the blades of rotor(rotorNumber) at rotor(rotorNumber)%secCP

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: timestamp
type(rotor_class), intent(in) :: rotor