NewsWorld
PredictionsDigestsScorecardTimelinesArticles
NewsWorld
HomePredictionsDigestsScorecardTimelinesArticlesWorldTechnologyPoliticsBusiness
AI-powered predictive news aggregation© 2026 NewsWorld. All rights reserved.
Trending
TrumpTariffTradeLaunchAnnouncePricesStrikesMajorFebruaryChinaMarketCourtNewsDigestSundayTimelineHongKongServiceMilitaryTechSafetyGlobalOil
TrumpTariffTradeLaunchAnnouncePricesStrikesMajorFebruaryChinaMarketCourtNewsDigestSundayTimelineHongKongServiceMilitaryTechSafetyGlobalOil
All Articles
Hacker News
Published 6 days ago

Show HN: 2D Coulomb Gas Simulator

Hacker News · Feb 16, 2026 · Collected from RSS

Summary

A pretty simple but fun to play with simulator for a concept from mathematical physics called the "2D Coulomb gas". I originally made this for my Bachelor's thesis to create pretty pictures and build intuition but have recently gotten it a fresh coat of paint and better performance curtesy of WebGPU acceleration (ported with liberal help from Codex to get through all of the boilerplate). Play around with it - hopefully read up more on the 2D Coulomb gas because it is an incredibly deep topic research wise. Comments URL: https://news.ycombinator.com/item?id=47039044 Points: 6 # Comments: 0

Full Article

Each dot represents an electron experiencing pairwise Coulomb repulsion with every other electron while being confined by an external potential $Q$. The energy of a configuration $z_1, \dots, z_n$ is given by the 2D log-gas Hamiltonian $$H(z_1,\ldots,z_n) = -\sum_{i \neq j} \log\lvert z_i - z_j \rvert + n\sum_{j=1}^n Q(z_j).$$ The 2D Coulomb gas is interesting because this type of Hamiltonian shows up in many different places across mathematics / mathematical physics: Eigenvalues of a random matrix with Gaussian random entries Zeroes of a polynomial with Gaussian random coefficient Fractional quantum hall effect Hele-Shaw/Laplacian growth Vortices in superconductors Consequently, there is a large body of research devoted to deducing properties of this family of systems. For example, in 2017 in was shown that the density of particles near the boundary follows an erfc distribution by means of a remarkably long proof. Of course, with this simulator we minimize the Hamiltonion, not sample from it in a temperature dependent way. We therefore approximate the minimum-energy state which is known as a Fekete configuration. For more on the background and context of these systems, I implore you to look into my bachelor thesis or this blog post. Exact pairwise repulsion is O(n²); very large n may be slow.


Share this story

Read Original at Hacker News

Related Articles

Hacker Newsabout 2 hours ago
We hid backdoors in ~40MB binaries and asked AI + Ghidra to find them

Article URL: https://quesma.com/blog/introducing-binaryaudit/ Comments URL: https://news.ycombinator.com/item?id=47111440 Points: 14 # Comments: 2

Hacker Newsabout 2 hours ago
Man accidentally gains control of 7k robot vacuums

Article URL: https://www.popsci.com/technology/robot-vacuum-army/ Comments URL: https://news.ycombinator.com/item?id=47111400 Points: 16 # Comments: 1

Hacker Newsabout 3 hours ago
Iran students stage first large anti-government protests since deadly crackdown

Article URL: https://www.bbc.com/news/articles/c5yj2kzkrj0o Comments URL: https://news.ycombinator.com/item?id=47111067 Points: 25 # Comments: 4

Hacker Newsabout 3 hours ago
I put New Zealand behind a $1 paywall

Article URL: https://rename.world/ Comments URL: https://news.ycombinator.com/item?id=47111042 Points: 22 # Comments: 4

Hacker Newsabout 4 hours ago
Volatility: The volatile memory forensic extraction framework

Article URL: https://github.com/volatilityfoundation/volatility3 Comments URL: https://news.ycombinator.com/item?id=47110781 Points: 3 # Comments: 0

Hacker Newsabout 4 hours ago
Holo v0.9: A Modern Routing Stack Built in Rust

Article URL: https://github.com/holo-routing/holo/releases/tag/v0.9.0 Comments URL: https://news.ycombinator.com/item?id=47110634 Points: 4 # Comments: 1