Suitable for free surface flow
自由面流动
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | rho |
density |
||
| real(kind=rk), | intent(out) | :: | p |
pressure |
||
| real(kind=rk), | intent(out) | :: | c |
sound speed |
pure subroutine p_water_monaghan(rho, p, c)
real(rk), intent(in) :: rho !! density <br>
!! 密度
real(rk), intent(out) :: p !! pressure <br>
!! 压力
real(rk), intent(out) :: c !! sound speed <br>
!! 声速
p = B*((rho/rho0)**gamma - 1)
c = spc_obj%c0*((rho/rho0)**3)
end subroutine p_water_monaghan