Skip to content

Main content

Energy Drift Per Step Tool

Calculate energy drift per step from explicit caller-supplied inputs.

Loading tool…

Description

Return total energy drift and average drift per step.

A simulation update combines supplied states, fluxes, forces and time conventions. Local integration and interface terms can be evaluated independently, while a full solver must also supply consistent fields, boundary conditions, conservation and convergence behavior.

Return total energy drift and average drift per step.

When to use this tool

Use Energy Drift Per Step when checking one explicitly supplied integration, flux or lattice-population contribution.

How to use the tool and how it works

  1. Enter initialEnergy, finalEnergy, stepCount. 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 drift, driftPerStep. Use the output convention below.

Return total energy drift and average drift per step. Require whole stepCount >= 1; drift = finalEnergy-initialEnergy, driftPerStep = drift/count.1

Input fieldMeaning and unitsAccepted input
initialEnergyInitial EnergyRequired. Finite number.
finalEnergyFinal EnergyRequired. Finite number.
stepCountStep CountRequired. Safe integer; minimum 1.
Output fieldInterpretationReturned shape
driftDriftRequired. Finite number.
driftPerStepDrift Per StepRequired. Finite number.
json
{
  "input": {
    "initialEnergy": 100,
    "finalEnergy": 102,
    "stepCount": 4
  },
  "output": {
    "drift": 2,
    "driftPerStep": 0.5
  }
}

Limitations and assumptions

  • This is average signed change, not a maximum local error, convergence order or evidence of stable dynamics.
  • 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 and validate the complete numerical method with its state initialization, boundary conditions and physical model for a reliable simulation.

References

  1. Calculation and input contract: computational-physics/energy-drift-per-step — tool.io

Similar or alternative tools