Description
Return one trapezoidal source increment.
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 one trapezoidal source increment.
When to use this tool
Use Crank Nicolson Boundary Source Halfweight when checking one explicitly supplied integration, flux or lattice-population contribution.
How to use the tool and how it works
- Enter oldSource, newSource, step, coefficient. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read sourceIncrement. Use the output convention below.
Return one trapezoidal source increment. Require step >= 0; sourceIncrement = step*coefficient*(oldSource+newSource)/2.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| oldSource | Old Source | Required. Finite number. |
| newSource | New Source | Required. Finite number. |
| step | Step duration or increment under the stated convention. | Required. Finite number; minimum 0. |
| coefficient | Coefficient | Required. Finite number. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| sourceIncrement | Source Increment | Required. Finite number. |
{
"input": {
"oldSource": 2,
"newSource": 4,
"step": 0.5,
"coefficient": 3
},
"output": {
"sourceIncrement": 4.5
}
} Limitations and assumptions
- This is the Crank-Nicolson source half-weight only, without solving an implicit system or proving second-order global accuracy.
- 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
Similar or alternative tools
- Energy Drift Per Step
Return total energy drift and average drift per step.
- Leapfrog Half Step Velocity Offset
Return leapfrog velocities at neighboring half steps.