Returns the wave action spectrum, which corresponds to the the wave variance spectrum normalized by the intrinsic frequency.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(spectrum_type), | intent(in) | :: | self | Spectrum instance |
Wave action array
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
pure function getWaveAction(self) result(wave_action)
!! Returns the wave action spectrum, which corresponds to the the wave
!! variance spectrum normalized by the intrinsic frequency.
class(spectrum_type),intent(in) :: self
!! Spectrum instance
real(kind=rk),dimension(:,:),allocatable :: wave_action
!! Wave action array
wave_action = self % spec / self % getFrequency2d()
endfunction getWaveAction