Skip to content

Command-Line Tools

cshock

usage: cshock [-h] x.x {subcommand}

Conical shock table lookup for a calorically perfect gas

positional arguments:
  x.x                   Upstream Mach number

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    surface-mach (mc, Mc)         Surface Mach number Mc
    shock-angle (beta, theta_s)   Shock angle theta_s
    cone-angle (theta_c)          Cone angle theta_c

Running help on any of these subcommands will give further details of their required inputs.

For instance, running cshock 5 cone-angle --help will yield:

usage: cshock x.x cone-angle [-h] [--specific-heat-ratio x.x] [--radians] [--shock-type <weak, strong>] x.x

Compute conical shock outputs by cone angle

positional arguments:
  x.x                   Cone angle theta_c

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x
                        Specific heat ratio
  --radians, -rad       Angle is specified in radians (default is degrees)
  --shock-type <weak, strong>, -st <weak, strong>
                        Oblique shock is weak or strong

fanno

usage: fanno [-h] {subcommand}

Fanno flow table lookup for a calorically perfect gas

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    mach (m, M)            Mach Number
    temperature (T, t)     Temperature ratio T/T*
    pressure (p, P)        Pressure ratio p/p*
    density (r, rho)       Density ratio rho/rho*
    total-pressure (p0)    Total pressure ratio p0/p0*
    fanno-parameter (fp)   Fanno parameter 4fL*/D
    entropy (s)            Entropy ratio (s*-s)/R

Running help on any of these subcommands will give further details of their required inputs.

For instance, running fanno entropy --help will yield:

usage: fanno entropy [-h] [--specific-heat-ratio x.x] [--flow-regime <subsonic, supersonic>] x.x

Compute Fanno flow outputs by entropy ratio

positional arguments:
  x.x                   Entropy ratio (s*-s)/R

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x
                        Specific heat ratio
  --flow-regime <subsonic, supersonic>, -fr <subsonic, supersonic>
                        Flow regime is subsonic or supersonic

isen

isen --help

usage: isen [-h] {subcommand}

Isentropic flow table lookup for a calorically perfect gas

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    mach (m, M)              Mach Number
    temperature (T, t)       Temperature ratio T0/T
    pressure (p, P)          Pressure ratio p0/p
    density (r, rho)         Density ratio rho0/rho
    area (A)                 Area ratio A/A*
    mach-angle (mu)          Mach angle mu
    prandtl-meyer (nu, pm)   Prandtl-Meyer function nu

Running help on any of these subcommands will give further details of their required inputs.

For instance, running isen mach --help will yield:

usage: isen mach [-h] [--specific-heat-ratio x.x] x.x

Compute isentropic flow outputs by Mach

positional arguments:
  x.x                   Mach number

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x Specific heat ratio

nshock

usage: nshock [-h] {subcommand}

Normal shock table lookup for a calorically perfect gas

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    mach-upstream (m1, M1)   Downstream Mach Number
    mach-downstream (m2, M2) Downstream Mach Number
    temperature (T, t)       Temperature ratio T2/T1
    pressure (p, P)          Pressure ratio p2/p1
    density (r, rho)         Density ratio rho2/rho1
    total-pressure (p0)      Total pressure ratio p02/p01
    pitot-pressure           Rayleigh Pitot pressure ratio p02/p1

Running help on any of these subcommands will give further details of their required inputs.

For instance, running nshock pitot-pressure --help will yield:

usage: nshock pitot-pressure [-h] [--specific-heat-ratio x.x] x.x

Compute normal shock outputs by Rayleigh Pitot tube pressure ratio

positional arguments:
  x.x                   Rayleigh Pitot pressure ratio p02/p1

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x Specific heat ratio

oshock

usage: oshock [-h] x.x {subcommand}

Oblique shock table lookup for a calorically perfect gas

positional arguments:
  x.x                   Upstream Mach number

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    mach-upstream-normal (mn1, Mn1) Normal component of upstream Mach number Mn1
    shock-angle (beta)              Shock angle beta
    deflection-angle (theta)        Deflection angle theta

Running help on any of these subcommands will give further details of their required inputs.

For instance, running oshock 5 beta --help will yield:

usage: oshock x.x shock-angle [-h] [--specific-heat-ratio x.x] [--radians] x.x

Compute oblique shock outputs by shock angle

positional arguments:
  x.x                   Shock angle beta

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x
                        Specific heat ratio
  --radians, -rad       Angle is specified in radians (default is degrees)

rayleigh

usage: rayleigh [-h] {subcommand}

Rayleigh flow table lookup for a calorically perfect gas

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    mach (m, M)                Mach Number
    temperature (T, t)         Temperature ratio T/T*
    pressure (p, P)            Pressure ratio p/p*
    density (r, rho)           Density ratio rho/rho*
    total-pressure (p0)        Total pressure ratio p0/p0*
    total-temperature (T0, t0) Total temperature ratio T0/T0*
    entropy (s)                Entropy ratio (s*-s)/R

Running help on any of these subcommands will give further details of their required inputs.

For instance, running rayleigh temperature --help will yield:

usage: rayleigh temperature [-h] [--specific-heat-ratio x.x] [--flow-regime <lowspeed, highspeed>] x.x

Compute Rayleigh flow outputs by temperature ratio

positional arguments:
  x.x                   Temperature ratio T/T*

options:
  -h, --help            show this help message and exit
  --specific-heat-ratio x.x, --gamma x.x, -g x.x
                        Specific heat ratio
  --flow-regime <lowspeed, highspeed>, -fr <lowspeed, highspeed>
                        Rayleigh flow regime is left or right of Tmax
                        on Rayleigh curve

shock-standoff

usage: shock-standoff [-h] {subcommand}

Shock standoff distance calculator for a calorically perfect gas

options:
  -h, --help            show this help message and exit

subcommands:
  choose one of the following
    cylinder-wedge (cw) Compute shock standoff distance for a cylinder-wedge
    sphere-cone (sc)    Compute shock standoff distance for a sphere-cone

Running help on any of these subcommands will give further details of their required inputs.

For instance, running shock-standoff cylinder-wedge --help will yield:

usage: shock-standoff cylinder-wedge [-h] x.x x.x

Compute shock standoff distance for a cylinder-wedge

positional arguments:
  x.x         Upstream Mach number
  x.x         Cylinder radius

options:
  -h, --help  show this help message and exit