obliqueshock {viadam} | R Documentation |
Computes the deflecting angle, shock thickness, downstream velocity and downstream momentum flux for an oblique shock as functions of shock angle and Froude number.
obliqueshock(teta,Fr)
teta |
shock angle. |
Fr |
Froude number. |
obliqueshock
returns a dataframe containing the variables teta
(shock angle), phi
(deflecting angle), delta
(difference between teta
and phi
, i.e. width of the stream along the deflecting wall), h2ph1
(relative change in flow depth across the shock), u2pu1
(relative change in flow speed across the shock) and h2u2ph1u1
(relative change in momentum flux across the shock). These variables have the same number of elements as teta
or Fr
. The Froude number is returned as the attribute Fr
of the list.
The angle teta
is given in radians and so are all angles that are returned by the function.
This function returns the theoretically exact oblique shock solution, which represents both the weak and strong shocks, so that the shock angle teta
is a double valued function of the deflecting angle phi
.
Tomas Johannesson
obliquenshock
and mxphi
.
## Not run: obliqueshock(22*pi/180,7) ## End(Not run)