Skip to content

Main content

Courant Number Single Axis

Calculate one-axis signed and absolute Courant numbers without choosing a numerical scheme’s stability limit.

Loading tool…

Description

Calculate signed and absolute single-axis supplied Courant numbers.

Numerical physics calculations depend on discretization, index conventions, boundary conditions and model units. A local force kick is only part of an integration method, a stencil residual is not a solved field, and a one-sided power weight is not a spectral-density normalization. Floating-point resolution also limits grid and coordinate representations.

Calculate signed and absolute single-axis supplied Courant numbers.

When to use this tool

Use Courant Number Single Axis when you already have signedSpeed, timeStep, cellWidth and need to calculate signed and absolute single-axis supplied Courant numbers.

How to use the tool and how it works

  1. Enter signedSpeed, timeStep, cellWidth. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read signedCourantNumber, absoluteCourantNumber. Use the output convention below.

Require timeStep>=0 and cellWidth>0; return speed*time/width and abs(speed)*time/width.1

Input fieldMeaning and unitsAccepted input
signedSpeedSigned SpeedRequired. Finite number.
timeStepTime StepRequired. Finite number; minimum 0.
cellWidthCell WidthRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
signedCourantNumbersignedSpeed*timeStep/cellWidth; no stability threshold is chosen.Required. Finite number.
absoluteCourantNumberAbsolute Courant NumberRequired. Finite number.
json
{
  "input": {
    "signedSpeed": 2,
    "timeStep": 0.1,
    "cellWidth": 0.5
  },
  "output": {
    "signedCourantNumber": 0.4,
    "absoluteCourantNumber": 0.4
  }
}

Limitations and assumptions

  • The speed may be signed. This alone does not enforce a method-specific CFL condition, combine dimensions or establish stability or a suitable time step.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the complete discretized model, integration algorithm and boundary treatment. Assess convergence, conservation and stability with the full calculation; individual residuals, CFL components, relaxation terms and index mappings do not establish numerical accuracy or physical validity.

References

  1. Calculation and input contract: computational-physics/courant-number-single-axis — tool.io

Similar or alternative tools