Skip to content

NFW Fermat potential and physics-led viewport upgrade - #1

Open
Biswajit1999 wants to merge 35 commits into
mainfrom
feature-20260627
Open

Biswajit1999 wants to merge 35 commits into
mainfrom
feature-20260627

Conversation

@Biswajit1999

@Biswajit1999 Biswajit1999 commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Scope

This draft turns the former NFW/Fermat limitation into a validated circular thin-lens component, then improves interaction feedback without adding decorative pseudo-physics to the viewport.

Physics contract

For x = r / theta_s, the implementation evaluates the standard piecewise circular-NFW functions with stable small-radius branches:

  • alpha = 4 kappa_s theta_s g(x) / x
  • psi = 2 kappa_s theta_s^2 h(x)

The TypeScript and Python checks use central finite differences to verify grad(psi) = alpha below, around, and above the scale radius. Extra guards cover the halo-centre series and the scale-radius transition.

Rendering and interaction

  • NFW and composite scenes now render a complete Fermat surface.
  • The old procedural warp grid was removed.
  • The optional ray-shooting overlay now plots the actual mapping theta -> beta(theta) from the shared physics core.
  • Preset cards and panels keep restrained CSS interaction feedback; no new runtime dependency is required.

Boundaries

This is a circular thin-lens NFW component, not elliptical NFW, multi-plane coupling, or inference-grade time-delay cosmography.

@Biswajit1999 Biswajit1999 changed the title Research integrity: suppress invalid Fermat telemetry for NFW scenes Add validated analytic NFW Fermat potential Jun 27, 2026
@Biswajit1999 Biswajit1999 changed the title Add validated analytic NFW Fermat potential NFW Fermat potential and physics-led viewport upgrade Jun 27, 2026
@Biswajit1999 Biswajit1999 changed the title NFW Fermat potential and physics-led viewport upgrade Validated NFW Fermat potential and physics-led viewport Jun 27, 2026
@Biswajit1999 Biswajit1999 changed the title Validated NFW Fermat potential and physics-led viewport NFW Fermat potential and physics-led viewport upgrade Jun 28, 2026
@Biswajit1999
Biswajit1999 marked this pull request as ready for review June 28, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant