Returns the vertical acceleration of a water particle under a sinusoid wave, given its amplitude, wavenumber, and frequency.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=realkind), | intent(in) | :: | x | Horizontal space [m] |
||
real(kind=realkind), | intent(in) | :: | z | Vertical space, negative downward [m] |
||
real(kind=realkind), | intent(in) | :: | t | Time [s] |
||
real(kind=realkind), | intent(in) | :: | a | Wave amplitude [m] |
||
real(kind=realkind), | intent(in) | :: | k | Wavenumber [rad/m] |
||
real(kind=realkind), | intent(in) | :: | omega | Angular frequency [rad] |
function verticalAcceleration(x,z,t,a,k,omega)
!! Returns the vertical acceleration of a water particle under a sinusoid wave,
!! given its amplitude, wavenumber, and frequency.
real(kind=realkind),intent(in) :: x
!! Horizontal space [m]
real(kind=realkind),intent(in) :: z
!! Vertical space, negative downward [m]
real(kind=realkind),intent(in) :: t
!! Time [s]
real(kind=realkind),intent(in) :: a
!! Wave amplitude [m]
real(kind=realkind),intent(in) :: k
!! Wavenumber [rad/m]
real(kind=realkind),intent(in) :: omega
!! Angular frequency [rad]
verticalAcceleration = -a*omega**2*sin(k*x-omega*t)*exp(k*z)
endfunction verticalAcceleration