Calculate sound speed
计算声速
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | h |
specific enthalpy |
||
| real(kind=rk), | intent(out) | :: | c | |||
| real(kind=rk), | intent(out) | :: | d |
pure subroutine get_sound_speed(h, c, d)
real(rk), intent(in) :: h !! specific enthalpy <br>
!! 特定热量
real(rk), intent(out) :: c, d
d = 2*g*h
c = 2*sqrt(d)
end subroutine get_sound_speed