Prandtl-Meyer

gas_dynamics.prandtl_meyer.prandtl_meyer.prandtl_meyer_angle_from_mach(mach: float, gas=<gas_dynamics.fluids.fluid object>) float

Returns the angle through which a flow has turned to reach a Mach number

Notes

Given a Mach number and ratio of specific heats, calculate the angle of a turn through which a flow has traversed to reach the Mach number given, from a Mach number of 1. Also known as the Prandtl-Meyer function. Default fluid is air.

Parameters
  • mach (float) – The Mach number

  • gas (fluid) – A user defined fluid object. Default is air

Returns

The angle in degrees through which the flow has turned

Return type

float

Examples

>>> import gas_dynamics as gd
>>> M = 2
>>> delta = gd.prandtl_meyer_turn(M=2)
26.379760813416475
>>>
gas_dynamics.prandtl_meyer.prandtl_meyer.prandtl_meyer_mach_from_angle(angle: float, gas=<gas_dynamics.fluids.fluid object>) float

Returns the Mach number given an angle through which the flow has turned from a starting Mach of one

Notes

Given a smooth turn through which a flow has turned and the ratio of specific heats, return the Mach number after the turn.

Parameters
  • angle (float) – The turn angle in degrees

  • gas (fluid) – A user defined fluid object. Default is air

Returns

The mach number

Return type

float

Examples

>>> import gas_dynamics as gd
>>> angle = 26.37
>>> M = gd.prandtl_meyer_mach(angle=angle)
>>> M
1.9996459342662083
>>>
gas_dynamics.prandtl_meyer.prandtl_meyer.mach_wave_angle(mach: float)

Return the angle of the Mach wave given the Mach number after a turn

Notes

Parameters

mach (float) – The mach number after a turn

Returns

The angle of the mach wave in degrees

Return type

float

Examples