🔬 X-ray Crystallography Beamline: Interactive 3D Cutaway
Explore an educational X-ray crystallography beamline, inspect vacuum optics and detector assemblies, and calculate Bragg angles live.
Explore an illustrative X-ray crystallography beamline with vacuum transport, monochromator optics, sample goniometry, and a pixel detector.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install
About this simulation
X-ray Crystallography Beamline: A Guided 3D Exploration
An X-ray crystallography beamline is a precision instrument for directing a controlled beam of X-ray photons onto a crystalline sample and measuring the resulting scattering. Its appearance can be deceptively industrial: pipes, valves, service platforms, electronics racks, and enclosed metal cabinets fill the room. Yet the scientific result depends on microscopic distances between atomic planes and extremely careful control of geometry. A beamline provides the connection between these very different scales.
This interactive reconstruction presents a fictional scientific installation called LUMENARC BX-11. It illustrates the broad sequence of beam conditioning, vacuum transport, monochromatisation, focusing, sample rotation, and detection. The detailed three-dimensional assembly is intended for inspection rather than construction. Shapes, component positions, visual treatments, and distances are educational interpretations, not documented specifications of a real facility. The moving photon marks show an explanatory route and are not a solved radiation-transport simulation.
The exhibit has five structural views. A complete exterior places the equipment in its service environment. An internal cutaway reveals the functional mechanisms behind selected enclosure panels. Isolation makes an individual item easier to recognise. An exploded view separates neighbouring components. Operation mode adds a simplified light path. Together, these views answer not only what the instrument does, but why its supporting hardware is necessary.
Why a Beamline Exists
Atoms in a crystal occupy an ordered structure. When an X-ray wave interacts with electrons in that structure, scattered waves can reinforce or cancel one another according to their relative phases. Recording the intensity and position of many reflections allows scientists to infer aspects of the crystal structure. It does not mean that a detector photographs atoms directly. The experimental output is a diffraction pattern that must be interpreted using additional physical and mathematical analysis.
A practical beamline must therefore supply photons with a useful energy range, define their direction and divergence, suppress unwanted radiation, hold a sample in a known position, and record weak scattered signals in a reproducible way. No single component can do all of this. Its scientific effectiveness emerges from an aligned system of vacuum chambers, optics, motion stages, detectors, sensors, utilities, and shielding.
The visualised source interface stands for photons supplied from an upstream radiation source. It does not reproduce an actual storage ring, electron trajectory, insertion device, or radiation-generation apparatus. Source physics and beamline instrumentation are related but distinct engineering topics. An experiment may involve multiple configurations and more beamline branches than are shown here.
A Walk Through the Assembly
Follow the model from the source interface at one end to the detector farther along the optical axis. A series of flange-connected pipes encloses the transmitted beam. Ports lead to pumping components, small actuators position shutters, and supporting frames transfer mechanical loads to a stable floor. The seeming simplicity of a cylindrical tube hides important engineering challenges: maintaining vacuum quality, preserving alignment, controlling heating, and allowing components to be serviced without compromising the rest of the instrument.
A shutter interrupts the beam when radiation must not pass into the experimental region. In a real facility, radiation safety involves designed shielding, interlocks, monitoring, authorised operating procedures, and tested fail-safe systems. The model includes a recognisable shutter blade and a drive enclosure, but neither its material nor its mechanism should be interpreted as sufficient for practical radiation protection.
Downstream, a monochromator is represented by two crystalline optical elements positioned on precision mounts. Further along, two mutually oriented focusing mirrors illustrate how surfaces can control beam divergence. Slits and diagnostics define or monitor the transported beam, while a goniometer supports the specimen within a sample station. A large pixelated detector sits on an adjustable carriage facing the specimen. Service racks, cable trays, cooling manifolds, and maintenance access occupy the space around the optical line.
The Monochromator and Bragg's Law
An X-ray monochromator selects a relatively narrow region of the incoming photon-energy distribution. Crystalline monochromators can exploit constructive interference from lattice planes: the relevant condition is often written as nλ = 2d sinθ. Here λ is the photon wavelength, d is the spacing between a chosen family of lattice planes, θ is the Bragg angle, and n is an integer diffraction order. This condition describes an idealised geometric relationship. Real optical performance also depends on crystal properties, angular acceptance, heat loading, surface perfection, and alignment.
The interactive panel illustrates first-order reflection with n = 1 and a reference interplanar spacing of 0.31356 nanometres, an approximate textbook value for silicon (111). It computes photon wavelength from energy using λ = hc/E with hc = 1.239841984 keV·nm. Changing the energy slider recalculates wavelength and the corresponding Bragg angle. This is a real mathematical dependency, although the viewer does not solve a full dynamical diffraction problem or physically reconfigure the optical hardware.
The panel also shows an independent substitution check. After determining θ, the page evaluates 2d sinθ and compares it with the wavelength computed from energy. This is a useful numerical consistency test, not experimental validation. Agreement confirms that the displayed elementary formulas were combined consistently. It says nothing about beam intensity, bandwidth, crystal reflectivity, or whether a real instrument could reach the chosen conditions.
Two- and four-bounce monochromator layouts, thermal compensation systems, and other optical architectures are possible. The reconstruction deliberately simplifies these choices so visitors can identify the role of each optical surface before studying specific experimental beamlines.
Vacuum Systems, Flanges, and Diagnostic Ports
X-ray beam transport often uses evacuated enclosures to reduce interactions with intervening gas and to protect sensitive optical elements. The appropriate vacuum regime depends on the source and instrument. Engineers must manage leaks, outgassing, pump performance, seals, motion feedthroughs, and differential expansion. These are important issues even when they are not visible in a finished apparatus.
The cylindrical sections in the 3D scene are separated by flange-like interfaces. Small branches represent connections to valves and pumping equipment. Some flanges are accompanied by individually selectable studs, clamps, and structural supports. These details communicate the system's modularity: components need interfaces so they can be installed, aligned, inspected, and replaced. The reconstruction does not assign a certified flange standard, vacuum rating, torque value, or material qualification.
Diagnostics positioned along a beam path can help operators identify changes in position, flux, or beam shape. The illustrated ion-chamber bodies and alignment hardware stand for this instrument class. Real diagnostic selection may include beam-position monitors, fluorescent screens, imaging devices, flux monitors, and other specialised components. An experimental beam is never made understandable solely by tracing a line through otherwise empty pipes.
Focusing Mirrors and Adjustable Slits
The focusing assembly is inspired by two orthogonal grazing-incidence mirror surfaces, a concept often associated with Kirkpatrick–Baez arrangements. One surface provides focusing in one plane, and a second provides focusing in the other. Their geometries and coatings are important because X-rays interact with matter differently from visible light. Simple optical intuition based on ordinary household mirrors is not sufficient to describe their performance.
Precision mirror stages are represented by adjusters, supports, guides, and mounts. Their presence is not decorative. Very small orientation changes can move an X-ray spot substantially by the time it reaches a sample. Mechanical stability, environmental control, and careful metrology consequently matter. The museum model does not claim any particular angular resolution, mirror slope error, or achievable focused spot size.
Slits define an aperture and may limit background radiation or unwanted portions of a beam. The four illustrated jaws form an adjustable opening. For clarity, their shapes are oversized relative to what a close-to-scale model might show. Such exaggeration is useful in an educational cutaway, provided it is not confused with a fabrication drawing. Nearby diagnostic bodies complete the visual story of beam control before the sample.
Sample Goniometry and Crystalline Specimens
At the experimental station, a goniometer changes the orientation of the sample relative to the incident beam and detector. A single diffraction pattern contains only part of the information available from a crystal. Rotating the specimen can bring additional reciprocal-lattice points into the relevant diffraction condition and produce more observations for analysis. Real experiments may use multiple axes, specialised scanning strategies, sample centring systems, and detailed data-collection plans.
Three visible circular frames symbolise nested angular motion and precision alignment. The displayed sample is a faceted shape intended to make the mounting point easy to find; it is not a molecular or atomic reconstruction. The small support hubs, bearings, encoder housings, and kinematic seats emphasise why precision positioning is an engineering challenge rather than a simple decorative rotation.
A cryostream-like nozzle and insulated feed line show a common way to deliver controlled cooling near a sample. Temperature selection can affect sample stability, thermal motion, radiation sensitivity, and structural behaviour. The exact gas temperatures, flow rates, and heat-transfer performance of a real arrangement are not represented here. In operation mode, the sample gently moves to illustrate a positioning concept. That movement is not generated from a feedback-control model.
Pixel Detectors, Geometry, and the Beamstop
An area detector records a spatial distribution of X-ray events or integrated intensity across many sensing regions. The image may contain spots, rings, diffuse scattering, or background signals depending on the specimen and experiment. A displayed grid of detector tiles communicates this basic architecture without suggesting a particular pixel pitch, electronic design, count rate, or detector technology.
The detector is mounted on a carriage with supports, guide rails, and a motor-like actuator. Varying detector position changes the angular range and spatial sampling of recorded scattering. The live panel uses a simple ray-intersection geometry: an illustrative transverse offset is L tan(2θ), with L chosen by a slider. It assumes a flat intercept and a single scattering direction. This is intentionally narrower than a complete experimental geometry model with rotations, detector tilt, offsets, calibration, and actual pixel mapping.
A separate beamstop prevents the intense direct beam from reaching part of the sensitive detector. Its placement relative to the sample and sensor matters. In the visualization it is presented as a compact object on a retractable-looking support. This is an explanatory form, not a workable specification for stopping ionising radiation.
Three Live Calculations and a Numerical Cross-Check
The numerical panel is part of the exhibit, not a fixed picture. Photon energy drives the wavelength equation and the associated Bragg-angle readout. The example scattering-angle display reports twice that Bragg angle, while the detector-offset display converts it into a planar interception distance. These are elementary, explicit relationships that visitors can test by moving the sliders.
A separate thickness slider drives a deliberately simplified attenuation expression, T = exp(−μx). The educational constant μ = 5.0 cm⁻¹ is labelled illustrative. It is not a measured or energy-dependent material attenuation coefficient. The length slider is given in millimetres, so the calculation converts it to centimetres before applying the exponent. The displayed fraction is converted into a percentage. It is useful for understanding exponential attenuation but should not be substituted into real radiation shielding calculations.
For every energy setting, the independent Bragg check compares the left side of the ideal condition with the energy-derived wavelength. Small differences arise only from floating-point rounding. The model is intentionally modest in the strength of its scientific claims: equations are real, illustrative parameter choices are disclosed, and no inferred facility performance is presented as measured fact.
Assembly Hierarchy and Service Engineering
The full exhibit contains individually named geometry components organised into nine subsystems. The names are intended to describe function: frame, pipe, flange, crystal, mirror, slit jaw, encoder, rail, detector tile, and cable service are more useful than anonymous part numbers. Selecting a component reveals its subsystem and role. Visibility controls make it possible to inspect a single region without dismantling the entire installation physically.
Guided assembly begins with the support infrastructure and progresses through the front end, vacuum transport, optical equipment, diagnostics, sample stage, detector, and service utilities. This sequence is an educational dependency order. A real project would require coordinated installation plans, metrology, clean-room practices where appropriate, pressure and electrical testing, radiation-safety authorisation, and detailed commissioning. The guided sequence does not imply approval to construct or operate such equipment.
The exploded view separates components according to their approximate position and assembly hierarchy. Separation distance is a visual tool, not a measurement of maintenance clearance. The Fit all camera command considers the displaced components, even at full explosion. Multiple geometry detail levels balance visual complexity against page performance, and the application includes a Canvas2D alternative for environments without working WebGL2.
Safety, Fidelity, and Interpretation
This is an engineering-inspired scientific explanation. The laws of photon energy, Bragg diffraction, simple ray geometry, and exponential attenuation are genuine. The complete configuration, exact arrangement of hardware, housing proportions, connection details, and aesthetics are illustrative. The rendered moving light and detector response are simplified teaching aids, not a validated physical simulation or an instrument-control interface.
X-rays are ionising radiation. In a real laboratory, operators require appropriate training, shielding, beam containment, interlock systems, facility procedures, monitoring, and regulatory compliance. The 3D scene cannot certify the safety of any design. No numeric visual setting should be interpreted as an operational recommendation or facility specification. The fictional styling is intentionally separate from the appearance of any named research institution.
The value of a cutaway lies in translating an invisible process into a recognisable chain of scientific functions. A visitor can follow the nominal photon path, identify optical interfaces, locate the specimen, understand what the detector sees, and ask why so much precision machinery surrounds a small object. That is the scale connection at the heart of crystallographic instrumentation.
Illustrative design, not affiliated with any real institution or manufacturer.
Frequently Asked Questions
What is an X-ray crystallography beamline used for?
It delivers and conditions X-ray photons for experiments that observe diffraction from ordered matter. The recorded intensities and positions of reflections can help researchers determine crystal structures after suitable analysis. Such experiments may be relevant to proteins, minerals, pharmaceuticals, semiconductors, and many other materials, but a single beamline layout does not cover every experiment type.
Why does the beamline contain so many vacuum pipes?
Evacuated transport sections reduce unwanted interactions along a beam path and provide protected interfaces for optics and diagnostics. Pumps, flanges, valves, and supports make the assembly maintainable. The required pressure and component choices vary by facility and are deliberately not specified by this fictional installation.
What does a double-crystal monochromator accomplish?
It can use diffraction from crystalline planes to select a narrow photon-energy range from a broader source. The relationship between angle, plane spacing, and wavelength follows Bragg's law in an elementary description. Real optical bandwidth, throughput, heat management, and angular acceptance require more elaborate modelling and experimental characterisation.
Is Bragg's law the same as a complete diffraction simulation?
No. Bragg's law gives a condition for constructive scattering from periodic planes in an idealised picture. A complete prediction of detector signals may require structure factors, reciprocal-space geometry, sample properties, absorption effects, instrumental response, and many other physical details. The page's one-angle example is deliberately limited.
Why are two focusing mirrors shown?
An arrangement of two orthogonally oriented reflective surfaces can focus or shape an X-ray beam in two directions. Mirror design can depend on grazing incidence, surface geometry, coating, and precise alignment. The large visible plates help explain the role of the optics but do not reproduce their true tolerances.
What is the purpose of a sample goniometer?
A goniometer positions and rotates the crystal relative to the incoming beam and the detector. Controlled orientations expose different diffraction conditions, allowing a richer dataset to be collected. The illustrated nested rings are symbolic of angular degrees of freedom, rather than a copy of a certified commercial instrument.
What does the area detector actually measure?
It measures spatially resolved X-ray intensity or events, which can be converted into a diffraction pattern after appropriate calibration and processing. It does not directly produce a microscopic photograph of atoms. The grid in the model is an explanatory representation of sensing regions, not a specification of pixel size.
Why is a beamstop needed?
The direct beam can be far more intense than many scattered signals. A beamstop protects a selected detector region by intercepting that beam. Its real design must account for radiation absorption, mechanical position, thermal loads, and safety. The illustrated beamstop is not a tested radiation-protection device.
Can the attenuation slider predict a real sample's transmission?
No. The page uses exponential attenuation with an openly illustrative, fixed coefficient solely to demonstrate the shape of the mathematical relationship. Actual attenuation varies with photon energy, material composition, density, thickness, and other conditions. Meaningful predictions require appropriate evaluated data and an instrument-specific model.
Does the interactive 3D model reproduce a real research facility?
No. LUMENARC BX-11 is an original educational design. Its named subsystems and underlying scientific principles reflect real instrumentation concepts, but proportions, component locations, mechanical details, and animations are deliberately reconstructed. It should be used for visual learning, not procurement, fabrication, shielding design, or operational planning.