HACKER Q&A
📣 sks38317

Looking for someone to help implement RFIM into a system simulation


Hi HN,

I'm working on a small system simulation project that explores how instability can emerge from the interaction of various variables over time. (Repo linked in the comments.)

Recently, I’ve been trying to incorporate the RFIM (Random Field Ising Model) into the logic—but I’ve hit a wall. It’s not the math or the concept itself, but rather the total lack of Korean-language resources or beginner-friendly guides that’s been challenging.

I’d really appreciate it if anyone:

has experience with RFIM and would be open to helping via a PR

knows of any well-documented codebases I could learn from

or could point me toward approachable explanations or tutorials

I’m still relatively new to GitHub and trying to improve this simulation step-by-step, so any support would go a long way.

Thanks for reading—and for any help you can offer!


  👤 andrewfromx Accepted Answer ✓
You should start with a Monte Carlo implementation using the Metropolis algorithm.

1. Create a grid with random up/down spins

2. Add random magnetic fields at each point

3. Pick points randomly on the grid

4. Calculate energy changes if you were to flip a spin

5. Decide whether to accept the flip based on temperature and energy differences

https://github.com/tjacovich/Ising_Model

https://github.com/prtkm/ising-monte-carlo/blob/master/ising...


👤 sks38317
Sorry if this sounds basic—English isn’t my first language, and I don’t have a technical background. I’ve had a hard time understanding RFIM unless it’s explained in Korean. Here’s the repo I’m working on, in case it helps: https://github.com/sks38317/-Why-the-System-Breaks-Before-An...