Skip to navigation Skip to content
Careers | Phone Book | A - Z Index

COSMIC Impact: Next-Gen X-ray Microscopy Platform Now Operational

Beamline at Berkeley Lab’s Advanced Light Source is specialized for studies of active chemistry, electronic properties at tiny scales

March 21, 2018

Glenn Roberts,, +1 510.486.5582

Tony Sujoy David 1

From left to right: Advanced Light Source scientists Tony Warwick, Sujoy Roy, and David Shapiro at the COSMIC beamline. (Credit: Lori Tamura/Berkeley Lab)

A next-generation X-ray beamline now operating at the Department of Energy’s Lawrence Berkeley National Laboratory (Berkeley Lab) brings together a unique set of capabilities to measure the properties of materials at the nanoscale.

Called COSMIC, for Coherent Scattering and Microscopy, this X-ray beamline at  Berkeley Lab’s Advanced Light Source (ALS) allows scientists to probe working batteries and other active chemical reactions, and to reveal new details about magnetism and correlated electronic materials.

COSMIC has two branches that focus on different types of X-ray experiments: one for X-ray imaging experiments and one for scattering experiments. In both cases, X-rays interact with a sample and are measured in a way that provides, structural, chemical, electronic, or magnetic information about samples.

The beamline is also intended as an important technological bridge toward the planned ALS upgrade, dubbed ALS-U, that would maximize its capabilities.

Now, after a first-year ramp-up during which staff tested and tuned its components, the scientific results from its earliest experiments are expected to get published in journals later this year.

A study published earlier this month in the journal Nature Communications, based primarily on work at a related ALS beamline, successfully demonstrated a technique known as ptychographic computed tomography that mapped the location of reactions inside lithium-ion batteries in 3-D. That experiment tested the instrumentation that is now permanently installed at the COSMIC imaging facility.

“This scientific result came out of the R&D effort leading up to COSMIC,” said David Shapiro, a staff scientist in the Experimental Systems Group (ESG) at Berkeley Lab’s ALS and the lead scientist for COSMIC’s microscopy experiments.

That result was made possible by ALS investments in R&D, and collaborations with the University of Illinois at Chicago and with Berkeley Lab’s Center for Advanced Mathematics for Energy Research Applications (CAMERA), he noted.

x rays scintillator cosmic

X-rays strike a scintillator material at the COSMIC beamline, causing it to glow. (Credit: Simon Morton/Berkeley Lab)

“We aim to provide an entirely new class of tools for the materials sciences, as well as for environmental and life sciences,” Shapiro said. Ptychography achieves spatial resolution finer than the X-ray spot size by phase retrieval from coherent diffraction data, and “The ALS has done this with world-record spatial resolution in two and now three dimensions,” he added.

The ptychographic tomography technique that researchers used in this latest study allowed them to view the chemical states within individual nanoparticles. Young-Sang Yu, lead author of the study and an ESG scientist, said, “We looked at a piece of a battery cathode in 3-D with a resolution that was unprecedented for X-rays. This provides new insight into battery performance both at the single-particle level and across statistically significant portions of a battery cathode.”

COSMIC is focused on a range of “soft” or low-energy X-rays that are particularly well-suited for analysis of chemical composition within materials

Ptychographic tomography can be particularly useful for looking at cellular components as well as batteries or other chemically diverse materials in extreme detail. Shapiro said that the X-ray beam at COSMIC is focused to a spot about 50 nanometers (billionths of a meter) in diameter; however, ptychography can enhance the spatial resolution routinely by a factor of 10 or more. The current work was performed with a 120-nanometer beam that achieved a 3-D resolution of about 11 nanometers.

COSMIC’s X-ray beam is also brighter than the ALS beamline that was used to test its instrumentation, and it will become even brighter once ALS-U is complete. This brightness can translate to an even higher nanoscale resolution, and can also enable far more precision in time-dependent experiments. 

Making efficient use of this brightness requires fast detectors, which are developed by the ALS detector group. The current detector can operate at a data rate of up to 400 megabytes per second and can now generate a few terabytes of data per day – enough to store about 500 to 1,000 feature-length movies. Next-generation detectors, to be tested shortly, will produce data 100 times faster.

“We are expecting to be the most data-intensive beamline at the ALS, and an important component of COSMIC is the development of advanced mathematics and computation able to quickly reconstruct information from the data as it is collected,” Shapiro said.


Researchers who worked on the COSMIC beamline pose for a group photo. (Credit: Berkeley Lab)

To develop these tools COSMIC coupled with CAMERA, which was created to bring state-of-the-art mathematics and computing to DOE scientific facilities. 

CAMERA Director James Sethian said, “Building real-time advanced algorithms and the high-performance ptychographic reconstruction code for COSMIC has been a highly successful multiyear effort between mathematicians, computer scientists, software engineers, software experts, and beamline scientists.”

The code the team developed to improve ptychographic imaging at COSMIC, dubbed SHARP, is now available to all light sources across the DOE complex. For COSMIC, the SHARP code runs on a dedicated graphics processing unit (GPU) cluster managed by Berkeley Lab’s High Performance Computing Services.

Besides ptychography, COSMIC is also equipped for experiments that use X-ray photon correlation spectroscopy, or XPCS, a technique that is useful for studying fluctuations in materials associated with exotic magnetic and electronic properties. 

COSMIC enables scientists to see such fluctuations occurring in milliseconds, or thousandths of a second, compared to time increments of multiple seconds or longer at predecessor beamlines. A new COSMIC endstation with applied magnetic field and cryogenic capabilities is now being built, with early testing set to begin this summer.

Scientists have already used COSMIC’s imaging capabilities to explore a range of nanomaterials, battery anode and cathode materials, cements, glasses, and magnetic thin films, Shapiro said.

“We’re still in the mode of learning and tuning, but the performance is fantastic so far,” he said. He credited the ALS crew, led by ESG scientist Tony Warwick, for working quickly to bring COSMIC up to speed. “It’s pretty remarkable to get to such high performance in such a short amount of time.”

The ALS is a DOE Office of Science User Facility. Development and deployment of the COSMIC beamline was supported by the DOE Office of Science.

Related news: COSMIC Achieves First Light, April 20, 2017

About Berkeley Lab

Founded in 1931 on the belief that the biggest scientific challenges are best addressed by teams, Lawrence Berkeley National Laboratory and its scientists have been recognized with 16 Nobel Prizes. Today, Berkeley Lab researchers develop sustainable energy and environmental solutions, create useful new materials, advance the frontiers of computing, and probe the mysteries of life, matter, and the universe. Scientists from around the world rely on the Lab’s facilities for their own discovery science. Berkeley Lab is a multiprogram national laboratory, managed by the University of California for the U.S. Department of Energy’s Office of Science.

DOE’s Office of Science is the single largest supporter of basic research in the physical sciences in the United States, and is working to address some of the most pressing challenges of our time. For more information, please visit