Computational Physics Tools
Browse all available computational physics tools.
Available tools
- CFL Diagonal Grid Step Budget Tool Sum-of-direction Courant budget with a supplied scheme limit, not a universal stability guarantee.
- Computational Particle Image Wrap Count Calculate a periodic image index and [0,L) wrapped particle coordinate for a positive supplied one-dimensional box length.
- Computational Physics: Lattice Periodic Neighbor Tool Resolve one explicit integer lattice displacement under periodic or rejecting boundary rules, retaining whether the unwrapped neighbor was inside.
- Computational Physics: Spectral Mode Nyquist Sign Tool Map one unshifted DFT bin index to a signed integer mode with an explicit even-length Nyquist sign policy; no frequency units or FFT evaluation.
- Courant Number Single Axis Calculate one-axis signed and absolute Courant numbers without choosing a numerical scheme’s stability limit.
- Crank Nicolson Boundary Source Halfweight Tool Trapezoidal time weighting of one externally supplied boundary/source contribution, not an entire implicit solve.
- Diffusion Length One Timestep Factor Tool Calculate diffusion length one timestep factor from explicit caller-supplied inputs.
- Discrete Mode Frequency Fold Tool Calculate discrete mode frequency fold from explicit caller-supplied inputs.
- Energy Drift Per Step Tool Calculate energy drift per step from explicit caller-supplied inputs.
- FFT Real Frequency Bin Weight Return the real-FFT one-sided power weight, keeping DC and an even-length Nyquist bin single and interior bins double.
- Finite Element Linear Shape One Node Tool Calculate finite element linear shape one node from explicit caller-supplied inputs.
- Finite Volume Courant One Face Term Tool Calculate finite volume courant one face term from explicit caller-supplied inputs.
- Finite Volume Face Flux Integrate an explicit constant face-normal flux density over a face area using a supplied outward sign.
- Grid Courant Component Tool Compute one supplied signed Courant component without assessing stability of an unspecified numerical scheme.
- Grid Diffusion Stability Ratio Tool Compute the equal-spacing central-difference explicit Euler diffusion ratio for a supplied dimension count.
- Grid Node Cell Center Offset Locate one uniform-grid cell center and bounding nodes from an explicit origin and zero-based index.
- Grid Refinement Richardson Single Term Calculate one Richardson fine-grid error and extrapolation under an explicit asymptotic h^p model and positive supplied order.
- Heat Stencil Negative Weight Flag Tool Center weight of an equal-spacing explicit nearest-neighbor heat stencil; no general solver stability proof.
- Lattice Boltzmann One Population Equilibrium Tool Second-order isothermal low-Mach equilibrium for one explicitly weighted discrete velocity.
- Leapfrog Half Step Velocity Offset Tool Calculate leapfrog half step velocity offset from explicit caller-supplied inputs.
- Leapfrog Staggered Time Label Preserve explicit position and velocity staggered-time labels without advancing a leapfrog integrator.
- Mesh Cell Flux Residual Tool Check a supplied signed finite-volume flux balance; face areas must already be included in fluxes.
- Mesh Refinement Ratio CFL Scaling Tool Caller-selected explicit time-step scaling power: one for advective and two for diffusive grid restrictions, without asserting full solver stability.
- Molecular Dynamics Half Kick One Axis Tool Calculate molecular dynamics half kick one axis from explicit caller-supplied inputs.
- Monte Carlo One Sample Importance Term Tool One importance-weighted sample contribution; normalized weights and effective sample size require the complete sample.
- Numerical Cell Peclet Term Tool Use cell Pe=u*dx/D without an additional factor of two; discretization conventions are explicit.
- Numerical Dispersion One Grid Phase Tool Centered first-difference modified wavenumber sin(k*h)/h with the continuous zero-mode ratio.
- Periodic Boundary Face Orientation Tool Calculate periodic boundary face orientation from explicit caller-supplied inputs.
- Periodic Boundary Two Image Distance Tool One-axis minimum image in [-period/2,period/2); exact half-period ties select the negative image.
- Periodic Ghost Cell Index Map one allocated periodic ghost-cell storage position to its zero-based interior source cell, with explicit ghost layers on both ends.
- Poisson Solver Cell Residual Calculate a one-dimensional centered Laplacian minus source residual for the explicit convention u-double-prime=f.
- Poisson Stencil One Source Term Tool Source contribution h squared*f/coefficient for the convention coefficient*Laplacian(u)=f.
- Pressure Projection One Gradient Term Tool One incompressible pressure-projection velocity correction, with pressure gradient on the same axis.
- Quadrature Node Affine Map Map explicit quadrature nodes and weights from [-1,1] to an increasing finite interval, applying the affine Jacobian without selecting a quadrature rule.
- Relaxation Update Grid Cell Apply an explicit nonnegative scalar relaxation factor to a candidate update, including zero and over-relaxation, without asserting solver convergence.
- Riemann Flux Supplied Wave Speed Factor Tool Rusanov/local Lax-Friedrichs flux with a caller-established nonnegative wave-speed bound.
- Simulation Time Unit Crosswalk Place a simulation time on an explicit physical-seconds scale and origin without inferring a model’s characteristic time.
- Spectral Derivative One Mode Factor Tool Complex first derivative multiplies a coefficient by i*k under the exp(i*k*x) convention.
- Symplectic Euler Single Momentum Kick Apply one explicit symplectic-Euler momentum kick p_new=p_old+F*dt using the supplied force at the chosen step.
- Time Step Last Short Step Length Shorten an explicitly supplied nominal time step to end exactly at a specified integration boundary.
- Upwind Advection One Interface Term Tool First-order scalar upwind advective flux on a left-to-right interface normal; zero velocity selects the left state with zero flux.
- Verlet One Position Step Tool Position Verlet with constant acceleration over the current time step.
- Verlet Position Residual Tool Compare one supplied constant-step position-Verlet update with a recorded next position.
- Wave Packet Phase Unwrapping Tie Tool Principal phase difference with an explicit exact-pi tie direction.
- Yee Grid Staggered Coordinate Offset Tool One supplied stagger fraction along a Yee-grid axis; component-specific staggering is chosen by the caller.