aero.Isentropic
The Isentropic
module
Provides standart Stagnation to Static Ratios for Ideal gas
:Example:
import aerokit.aero.Isentropic as Is Is.TtTs_Mach(1.) 1.2 Is.TtTs_Mach(2., gamma=1.6) 2.2
Available functions
Provides Tt/Ts Pt/Ps ratios from Mach number and reversed functions.
Specific heat ratio gamma
is optional and can be specified in the functions itself
or using aerokit.common.defaultgas module
Functions
Mach_PtPs(PtPs, gamma=defg._gamma)
Computes Mach number from Pt/Ps ratio
Parameters:
Name | Type | Description | Default |
---|---|---|---|
PtPs |
local Total over Static pressure ratio (either scalar or numpy array) |
required | |
gamma |
(Default value = defg._gamma) |
_gamma
|
Returns:
Type | Description |
---|---|
Mach number |
Source code in aerokit/aero/Isentropic.py
84 85 86 87 88 89 90 91 92 93 94 95 |
|
Mach_TtTs(TtTs, gamma=defg._gamma)
Computes Mach number from Tt/Ts ratio
Parameters:
Name | Type | Description | Default |
---|---|---|---|
TtTs |
local Total over Static temperature ratio (either scalar or numpy array) |
required | |
gamma |
(Default value = defg._gamma) |
_gamma
|
Returns:
Type | Description |
---|---|
Mach number (same type as TtTs) |
Source code in aerokit/aero/Isentropic.py
70 71 72 73 74 75 76 77 78 79 80 81 |
|
PtPs_Mach(Mach, gamma=defg._gamma)
Computes Pt/Ps ratio from Mach number
Long comment
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Mach |
local Mach number (either scalar or numpy array) |
required | |
gamma |
specific heat ratio, default from aerokit.common.defaultgas |
_gamma
|
Returns:
Type | Description |
---|---|
result Pt/Ps ratio |
Example:
>>> PtPs_Mach(1.) # with default gamma 1.4
1.892929158737854
>>> PtPs_Mach(2., gamma=1.6)
8.187044460255244
Source code in aerokit/aero/Isentropic.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
TtTs_Mach(Mach, gamma=defg._gamma)
Computes Tt/Ts ratio from Mach number
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Mach |
local Mach number (either scalar or numpy array) |
required | |
gamma |
specific heat ratio, default from aerokit.common.defaultgas |
_gamma
|
Returns:
Type | Description |
---|---|
result Tt/Ts ratio |
Example:
>>> TtTs_Mach(1.) # with default gamma 1.4
1.2
Source code in aerokit/aero/Isentropic.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
Velocity_MachTt(Mach, Tt, r=defg._r, gamma=defg._gamma)
Computes velocity from
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Mach |
Mach number |
required | |
Tt |
Total temperature |
required | |
r |
(Default value = defg._r) |
_r
|
|
gamma |
(Default value = defg._gamma) |
_gamma
|
Returns:
Type | Description |
---|---|
Velocity |
Source code in aerokit/aero/Isentropic.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
|