Skip to content

Main content

CFL Diagonal Grid Step Budget Tool

Sum-of-direction Courant budget with a supplied scheme limit, not a universal stability guarantee.

Loading tool…

Description

Compare a summed grid Courant number with a supplied limit.

A dimensionless time-step ratio, free-diffusion scale or sampling weight assumes a particular model and data basis. Local bounds and factors can help diagnose a method, but accuracy, stability and statistical uncertainty depend on the complete algorithm and its assumptions.

Compare a summed grid Courant number with a supplied limit.

When to use this tool

Use CFL Diagonal Grid Step Budget when checking the stated local stability, diffusion or sampling convention.

How to use the tool and how it works

  1. Enter speeds, spacings, timeStep, suppliedLimit. Keep parallel arrays aligned. 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 courantSum, margin. Use the output convention below.

Compare a summed grid Courant number with a supplied limit. Require aligned nonempty speeds/positive spacings, timeStep >= 0 and suppliedLimit >= 0; sum = dt*sum(abs(speed)/spacing), margin = limit-sum.1

Input fieldMeaning and unitsAccepted input
speedsSpeedsRequired. Array of finite number; maximum items 256.
spacingsSpacingsRequired. Array of finite number; maximum items 256.
timeStepStep duration in the same time unit used by rates and accelerations.Required. Finite number; minimum 0.
suppliedLimitSupplied LimitRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
courantSumCourant SumRequired. Finite number.
marginMarginRequired. Finite number.
json
{
  "input": {
    "speeds": [
      1,
      2
    ],
    "spacings": [
      2,
      4
    ],
    "timeStep": 0.5,
    "suppliedLimit": 1
  },
  "output": {
    "courantSum": 0.5,
    "margin": 0.5
  }
}

Limitations and assumptions

  • The limit is supplied; actual numerical stability depends on the full discretization, operator and boundary conditions.
  • 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

Analyze the full numerical or stochastic method, its support and error behavior before treating a local factor as a reliability guarantee.

References

  1. Calculation and input contract: computational-physics/cfl-diagonal-grid-step-budget — tool.io

Similar or alternative tools