Skip to content

Main content

Relaxation Update Grid Cell

Apply an explicit nonnegative scalar relaxation factor to a candidate update, including zero and over-relaxation, without asserting solver convergence.

Loading tool…

Description

Apply a supplied scalar relaxation update.

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.

Apply a supplied scalar relaxation update.

When to use this tool

Use Relaxation Update Grid Cell when you already have oldValue, candidateValue, relaxationFactor and need to apply a supplied scalar relaxation update.

How to use the tool and how it works

  1. Enter oldValue, candidateValue, relaxationFactor. 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 updatedValue. Use the output convention below.

Require relaxationFactor>=0; return oldValue+factor*(candidateValue-oldValue).1

Input fieldMeaning and unitsAccepted input
oldValueOld ValueRequired. Finite number.
candidateValueCandidate ValueRequired. Finite number.
relaxationFactorNonnegative numeric factor; values above one permit over-relaxation.Required. Finite number; minimum 0.
Output fieldInterpretationReturned shape
updatedValueUpdated ValueRequired. Finite number.
json
{
  "input": {
    "oldValue": 2,
    "candidateValue": 6,
    "relaxationFactor": 0.5
  },
  "output": {
    "updatedValue": 4
  }
}

Limitations and assumptions

  • Factors above one permit over-relaxation. No solver, admissible range, convergence, stability or suitable factor is determined.
  • 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/relaxation-update-grid-cell — tool.io

Similar or alternative tools