Return velocity vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(conservative_compressible), | intent(in) | :: | self | Conservative. |
Velocity vector.
elemental function velocity(self) result(velocity_)
!< Return velocity vector.
class(conservative_compressible), intent(in) :: self !< Conservative.
type(vector) :: velocity_ !< Velocity vector.
velocity_ = self%momentum / self%density
endfunction velocity