aero.ShockWave
@package ShockWave local Rankine Hugoniot equations for shock waves
Functions:
Mach_DevMax(dev, gamma=defg._gamma)
computes the deviation angle for a downstream SONIC Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
336 337 338 339 340 341 342 343 344 345 346 347 | |
Mach_DevSonic(dev, gamma=defg._gamma)
computes the deviation angle for a downstream SONIC Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
350 351 352 353 354 355 356 357 358 359 360 361 | |
Mn_Ps_ratio(Pratio, gamma=defg._gamma)
Computes normal Mach number from static pressure ratio across a shockwave
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Pratio
|
float
|
static pressure ratio |
required |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
normal Mach number in shock reference frame |
Source code in aerokit/aero/ShockWave.py
33 34 35 36 37 38 39 40 41 42 43 44 45 | |
Mn_Pt_ratio(ptratio, gamma=defg._gamma)
Computes normal Mach number from total pressure ratio across a shockwave
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ptratio
|
|
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
Ps_ratio(Mn, gamma=defg._gamma)
Computes static pressure ratio across a shockwave from normal component of Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mn
|
upstream normal Mach number in shock reference frame |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
static pressure ratio |
Source code in aerokit/aero/ShockWave.py
18 19 20 21 22 23 24 25 26 27 28 29 30 | |
Pt_ratio(Mn, gamma=defg._gamma)
Total pressure ration through shock wave
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mn
|
upstream relative normal Mach number to param |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
93 94 95 96 97 98 99 100 101 102 103 104 | |
Rho_ratio(Mn, gamma=defg._gamma)
Computes density ratio across a shockwave from normal component of Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mn
|
normal Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
density ratio accross a shock |
Source code in aerokit/aero/ShockWave.py
48 49 50 51 52 53 54 55 56 57 58 59 60 | |
Ts_ratio(Mn, gamma=defg._gamma)
Computes temperature ratio across a shockwave from normal component of Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mn
|
normal Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
temperature ratio across a shock |
Source code in aerokit/aero/ShockWave.py
63 64 65 66 67 68 69 70 71 72 73 74 75 | |
conical_Mach_walldeflection_sigma(deflection, sigma, gamma=defg._gamma)
computes upstream Mach number from wall deflection and shock angle sigma
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param deflection: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
deflection
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 | |
conical_deflection_Mach_sigma(Mach, sigma, gamma=defg._gamma, tol=1e-06)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param sigma: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
tol
|
Default value = 1.0e-6) |
1e-06
|
|
sigma
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | |
conical_sigma_Mach_walldeflection(Mach, deflection, gamma=defg._gamma)
computes shock angle sigma from upstream Mach number and wall deflection
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param deflection: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
deflection
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 | |
deflection_Mach_ShockPsratio(Mach, Pratio, gamma=defg._gamma)
Compute deflection angle from upstream Mach number and static pressure ratio
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param Pratio: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
Pratio
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
175 176 177 178 179 180 181 182 183 184 185 186 187 | |
deflection_Mach_sigma(Mach, sigma, gamma=defg._gamma)
computes deflection (either weak or strong) from upstream Mach and sigma shock angle (handle negative sigma angles)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param sigma: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
sigma
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 | |
dev_Max(Mach, gamma=defg._gamma)
computes the maximum deviation (always subsonic downstream flow), separation of weak/strong shock
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param gamma: (Default value = defg._gamma) |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
295 296 297 298 299 300 301 302 303 304 305 306 | |
dev_MaxMinf(gamma=defg._gamma)
compute maximum deviation whatever Mach number (infinite)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
gamma
|
_type_
|
ratio of specific heats. Defaults to defg._gamma. |
_gamma
|
Returns:
| Name | Type | Description |
|---|---|---|
float |
maximum shock angle |
Source code in aerokit/aero/ShockWave.py
309 310 311 312 313 314 315 316 317 318 319 | |
dev_Sonic(Mach, gamma=defg._gamma)
computes the deviation angle for a downstream SONIC Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
322 323 324 325 326 327 328 329 330 331 332 333 | |
downstreamMach_Mach_ShockPsratio(Mach, Pratio, gamma=defg._gamma)
Compute downstream Mach number from upstream Mach number and static pressure ratio
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param Pratio: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
Pratio
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
downstream_Mach(Mach, sigma, gamma=defg._gamma)
Compute the Mach number downstream of an oblique shock.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
sigma
|
shock angle in degrees |
required | |
gamma
|
specific-heat ratio |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
downstream Mach number |
Mach and sigma may be scalars or NumPy-compatible arrays.
Source code in aerokit/aero/ShockWave.py
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |
downstream_Mn(Mn, gamma=defg._gamma)
Computes downstream normal Mach number from upstream normal Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mn
|
param gamma: (Default value = defg._gamma) |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
| Type | Description |
|---|---|
|
downstream normal Mach number |
Source code in aerokit/aero/ShockWave.py
78 79 80 81 82 83 84 85 86 87 88 89 90 | |
sigma_DevMax(Mach, gamma=defg._gamma)
computes the shock angle at maximum deviation (always subsonic downstream flow), separation of weak/strong shock
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 | |
sigma_Mach_deflection(Mach, deflection, init=None, gamma=defg._gamma)
computes the shock angle from upstream Mach number and deflection angle
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param deflection: |
required | |
init
|
Default value = None) |
None
|
|
gamma
|
Default value = defg._gamma) |
_gamma
|
|
deflection
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | |
sigma_Sonic(Mach, gamma=defg._gamma)
computes the shock angle for a downstream SONIC Mach number
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
upstream Mach number |
required | |
gamma
|
(Default value = defg._gamma) |
_gamma
|
Returns:
Source code in aerokit/aero/ShockWave.py
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 | |
strongsigma_Mach_deflection(Mach, deflection, gamma=defg._gamma)
computes the shock angle (strong solution) from Mach and deviation
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param deflection: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
deflection
|
|
required |
Returns:
| Type | Description |
|---|---|
|
Shock angle (strong solution) |
Source code in aerokit/aero/ShockWave.py
236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | |
weaksigma_Mach_deflection(Mach, deflection, gamma=defg._gamma)
Computes deflection angle (weak solution) from upstream Mach number and shock angle
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Mach
|
param deflection: |
required | |
gamma
|
Default value = defg._gamma) |
_gamma
|
|
deflection
|
|
required |
Returns:
Source code in aerokit/aero/ShockWave.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 | |