Simulating Neutron Protein Crystallography Experiments: Applications to the Development of the NMX Instrument at ESS

This paper presents Monte Carlo simulations using McStas to optimize the upcoming NMX instrument at the European Spallation Source by implementing ray-splitting techniques and a new sampling method to improve event formation and assess environmental scattering effects for neutron protein crystallography.

Bertelsen, M., Willendrup, P. K., Yoo, S., Meligrana, A., McDonagh, D., Bergmann, J., Oksanen, E., Finke, A. D.

Published 2026-03-30
📖 5 min read🧠 Deep dive
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you are an architect designing the world's most powerful flashlight, but you haven't built the building yet, and you don't have any light bulbs to test it with. How do you know if your design will work? You build a perfect, hyper-realistic virtual simulation on a supercomputer.

That is exactly what this paper is about. The authors are simulating a neutron experiment for a massive new machine called NMX at the European Spallation Source (ESS), all without firing a single real neutron.

Here is the breakdown of their work using everyday analogies:

1. The Goal: Seeing the Invisible

Scientists want to study proteins (the tiny machines inside our bodies) to understand how they work. To do this, they need to see where the hydrogen atoms are located.

  • The Problem: X-rays (like in medical CT scans) are great at seeing heavy atoms like carbon, but they "glance off" hydrogen atoms, making them invisible.
  • The Solution: Neutrons are like a different kind of flashlight that interacts perfectly with hydrogen. However, neutrons are hard to get; they are rare and weak compared to X-rays.
  • The Challenge: To get a good picture, you need huge crystals and a lot of time. The new ESS machine promises to be so powerful it can use smaller crystals, but before they build it, they need to know exactly how to set it up.

2. The Tool: The "Virtual Ray-Tracer"

The team used a software called McStas. Think of this as a video game engine for physics.

  • Instead of shooting real neutrons, the computer shoots millions of virtual neutron rays.
  • These rays travel through a virtual model of the machine, bouncing off mirrors, passing through choppers (gates that control the beam), and hitting a virtual protein crystal.
  • The computer calculates the odds of every single ray hitting a specific spot on a virtual detector.

3. The Big Hurdle: The "Needle in a Haystack" Problem

Here is the tricky part: The probability of a neutron hitting a protein crystal and bouncing off in a useful way is incredibly low. It's like trying to hit a specific pixel on a wall by throwing a dart from a mile away.

  • The Old Way: To get enough "hits" (data) to see a clear picture, you would have to simulate trillions of darts. This would take a supercomputer years to calculate.
  • The New Trick (SPLIT): The authors found a clever shortcut. Imagine you throw one dart, and it hits the wall. Instead of just recording that one hit, the computer says, "Okay, let's copy and paste that successful dart 10,000 times."
    • This is called the SPLIT method.
    • It allows them to simulate the results of trillions of darts by only actually calculating the path of a few million. It's like having a photocopier for your data, saving them massive amounts of time and computer power.

4. Turning "Probabilities" into "Real Data"

The computer doesn't give you a picture; it gives you a list of probabilities (e.g., "There is a 0.0000001% chance a neutron hit this pixel").

  • The Problem: You can't analyze a list of probabilities the same way you analyze a photo. You need actual "counts" (like a real detector would see).
  • The Solution: They used a new mathematical trick called Weighted Reservoir Sampling.
    • Analogy: Imagine you have a giant river of water (the probabilities) flowing past you. You can't drink the whole river, but you need a cup of water that represents the whole river perfectly.
    • This new method lets them scoop up a "cup" of data that statistically looks exactly like the real thing, without needing to store the entire river in their memory. This allows them to turn the simulation into a file that looks exactly like data from a real experiment.

5. Testing the "Real World" Messiness

In a perfect world, neutrons only hit the crystal. In reality, they bounce off air, the beamstop (a shield to catch the main beam), and the walls.

  • The team simulated these messy conditions. They found that air is actually a big source of "noise" (static on a radio), scattering neutrons and creating a fuzzy background.
  • By simulating this, they learned exactly how to position the detectors and shields to minimize this noise before the real machine is even built.

6. The Result: A Blueprint for Success

They took their simulated data and ran it through the same software scientists use to analyze real experiments (called DIALS).

  • The Verdict: The software successfully found the protein structure in the fake data.
  • Why it matters: This proves their simulation is accurate. Now, when the real NMX machine opens in 2027, they won't be guessing how to set it up. They will have a "flight simulator" that tells them exactly where to put the detectors, how long to run the experiment, and how to clean up the data.

Summary

This paper is about building a digital twin of a giant scientific machine. By using clever math tricks (SPLIT and Reservoir Sampling), the team turned a computer simulation into a realistic "fake experiment." This allows them to perfect the design of the world's most powerful neutron microscope before a single bolt is tightened, ensuring that when it finally turns on, it will immediately start revealing the secrets of life at the atomic level.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →