Computes E(k)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | kmag |
Wavevector magnitude |
||
| real(kind=wp), | intent(in) | :: | kp |
Peak |
||
| real(kind=wp), | intent(in) | :: | A |
Spectrum amplitude |
Result
function GetEnergySpectrum(kmag,kp,A) result (res) !> Computes E(k) implicit none real(wp), intent(in) :: kmag !! Wavevector magnitude real(wp), intent(in) :: kp !! Peak real(wp), intent(in) :: A !! Spectrum amplitude real(wp) :: res !! Result res = A*(kmag**4)*exp(-2.0_wp*(kmag/kp)**2) return end function GetEnergySpectrum