Enter Imaging Data
Why X-Ray Transmission Reveals Void Fraction
X-ray imaging measures how strongly a sample reduces a beam. Dense liquid attenuates more radiation than gas. A two-phase pixel therefore produces an intensity between liquid and gas references. The calculator converts that position into a line-averaged void fraction. This value represents the gas share along the beam path. It is not a local fraction.
Formula Used
For calibration images, the intensities are Im, Il, and Ig. They represent mixture, liquid, and gas states. The equation is alpha equals ln(Im divided by Il) divided by ln(Ig divided by Il). Subtract dark current before evaluating logarithms. The liquid fraction equals one minus alpha. Percentage void fraction equals alpha multiplied by one hundred.
A second mode accepts attenuation coefficients. It uses alpha equals mu liquid minus mu mixture, divided by mu liquid minus mu gas. Both follow the Beer-Lambert relationship. They assume one path length, stable beam energy, and comparable detector response.
How to Use This Calculator
Choose the calibrated intensity mode when references are available. Enter the mixture, liquid, and gas readings from one pixel or region. Add a detector dark value when background exists. Every corrected intensity must remain positive.
Choose attenuation mode when processing produced linear attenuation values. Enter mixture and phase coefficients in matching units. Select the desired confidence level. Add standard uncertainties when they are known. Choose the displayed precision. Submit the form to view the result above the inputs.
Understanding the Result
A result near zero indicates mostly liquid. A result near one indicates mostly gas. Values outside that range can occur. They may signal noise, poor calibration, beam drift, phase changes, or a mixture outside the reference conditions. Clamping can simplify presentation, but the raw value should still be reviewed.
The diagnostics compare the mixture with both references. Weak phase contrast creates unstable division and large uncertainty. Wider confidence intervals also indicate limited measurement strength. Repeat calibration when the detector response or source spectrum changes.
Improving Measurement Quality
Acquire dark and flat images with the same exposure settings. Average several frames to reduce random noise. Avoid saturated pixels and detector edge regions. Correct beam hardening when broad energy spectra are used. Keep geometry fixed between reference and mixture scans. Motion blur can mix structures and bias the estimate.
Use region averages when single pixels are noisy. Record temperature, pressure, composition, and path thickness. Those variables can alter density and attenuation. For dynamic flows, synchronize exposure timing with the process. Validate the result against a known phantom or an independent measurement.
Important Limitations
The method assumes a two-phase path with representative endpoints. Solids, deposits, bubbles smaller than resolution, and changing composition can break that model. Scattering and polychromatic effects may also violate simple exponential attenuation. Treat the output as an engineering estimate. Apply tomography or advanced correction models when spatial detail, regulatory evidence, or high accuracy is required.
Frequently Asked Questions
1. What is void fraction?
Void fraction is the fraction of a sampled volume or beam path occupied by gas. A value of zero means no gas. A value of one means the path is entirely gas under the selected model.
2. What does this X-ray result represent?
The result is normally a line-averaged estimate along the X-ray beam path. A single projection does not directly reveal the complete three-dimensional gas distribution.
3. Why are gas and liquid references required?
They define the calibrated endpoints. The mixture reading is positioned between those endpoints using logarithmic transmission or direct attenuation interpolation.
4. Which intensity units should I use?
Any consistent detector unit works, including counts or grayscale values. Mixture, liquid, gas, and dark readings must come from comparable exposures and processing.
5. Why does the intensity formula use logarithms?
X-ray transmission follows an exponential attenuation model. Logarithms convert that exponential relationship into a linear attenuation scale that can be interpolated between phase references.
6. What is the detector dark value?
It is the signal recorded without useful X-ray exposure. Subtracting it removes detector offset. Corrected intensities must remain greater than zero.
7. Why can the raw result exceed zero or one?
Noise, drift, poor references, composition changes, scattering, or beam hardening can place the mixture outside the calibrated range. Review the raw value before accepting a clamped result.
8. Should I enable clamping?
Clamping is useful for presentation and downstream limits. It should not hide calibration problems. The calculator always reports the raw value for review.
9. How is uncertainty calculated?
The calculator uses first-order propagation from three independent standard uncertainties. The selected confidence multiplier creates the displayed interval. Correlation and model error are not included.
10. Can this replace tomography?
No. Projection data provides a path average. Tomography or another reconstruction method is needed when local spatial distribution is important.
11. Does this calculator manage radiation safety?
No. It only analyzes entered measurements. X-ray equipment requires approved shielding, procedures, training, exposure controls, and supervision under applicable safety rules.