Description
Choose a supplied simulation's final shortened time step.
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.
Choose a supplied simulation's final shortened time step.
When to use this tool
Use Time Step Last Short Step Length when you already have currentTime, endTime, nominalTimeStep and need to choose a supplied simulation's final shortened time step.
How to use the tool and how it works
- Enter currentTime, endTime, nominalTimeStep. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read stepLength, reachesEnd. Inspect reachesEnd before interpreting the associated values.
Require end>=current and nominalTimeStep>0; step=min(nominal,end-current), reachesEnd=nominal>=end-current.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| currentTime | Current Time | Required. Finite number. |
| endTime | End Time | Required. Finite number. |
| nominalTimeStep | Nominal Time Step | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| stepLength | min(nominalTimeStep,endTime-currentTime), including zero at the endpoint. | Required. Finite number. |
| reachesEnd | Reaches End | Required. Boolean. |
{
"input": {
"currentTime": 0.9,
"endTime": 1,
"nominalTimeStep": 0.2
},
"output": {
"stepLength": 0.09999999999999998,
"reachesEnd": true
}
} Limitations and assumptions
- At the end step is zero and reachesEnd=true. This does not advance a state, control local error or establish stability, convergence or an appropriate 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
Similar or alternative tools
- Courant Number Single Axis
Calculate signed and absolute single-axis supplied Courant numbers.
- Symplectic Euler Single Momentum Kick
Apply one supplied force-time momentum kick.