Interactive computational workbench for exploring the physical governing equations of neural contrast. Simulate spin magnetization relaxation (Bloch equations), optical photon diffusion (Beer-Lambert transport), and electromagnetic dipole volume conduction in real time.
Nuclear Magnetic Resonance (Bloch Equation Simulator)
Simulate how magnetic field strength \(B_0\), radiofrequency (RF) pulse flip angle \(\alpha\), and tissue-specific \(T_1 / T_2^*\) relaxation times dictate transverse decay \(M_{xy}(t)\) and longitudinal recovery \(M_z(t)\).
Mean Photon Penetration Depth (\(\approx d/2\)):15.0 mm
Cortical Sensitivity Fraction:18.4%
Optical Density Shift \(\Delta \text{OD}_{850\text{nm}}\):+0.042
Modified Beer-Lambert Law (MBLL):
$$\Delta \text{OD}(\lambda) = \left[ \epsilon_{\text{HbO}}(\lambda) \Delta [\text{HbO}] + \epsilon_{\text{HbR}}(\lambda) \Delta [\text{HbR}] \right] \cdot d \cdot \text{DPF}(\lambda) + G$$
Because near-infrared light (\(700\text{–}900\text{ nm}\)) undergoes thousands of forward scattering events (\(\mu_s' \gg \mu_a\)), photons travel in an arcuate "banana-shaped" probability volume. Light only probes the cerebral cortex if the source-detector distance \(d\) exceeds approximately \(2.5 \times\) the skull-scalp thickness.
Neuronal Dipole Volume Conduction (EEG vs. MEG)
Compare scalp electrical potential \(V(\mathbf{r})\) and external magnetic flux \(B(\mathbf{r})\) as a function of dipole depth, orientation (radial vs tangential), and volume conductor conductivity.
Skull Conductivity Ratio (\(\sigma_{\text{brain}} / \sigma_{\text{skull}}\))30:1 (Normal)
Peak Scalp Electric Potential (\(V_{\text{max}}\)):3.4 μV
Peak External Magnetic Field (\(B_{\text{max}}\)):148.2 fT
Radial vs. Tangential Field Cancellation:0% (Pure Tangential)
Volume Conduction & Dipolar Symmetries:
In a spherically symmetric volume conductor, a purely radial current dipole produces an external magnetic field of exactly \(\mathbf{B} = 0\) everywhere outside the sphere, because primary source fields are perfectly cancelled by volume return currents! In contrast, a tangential dipole produces symmetric bipolar magnetic flux loops with minimal skull smearing. EEG detects both radial and tangential dipoles but suffers severe spatial smearing from the low conductivity of the skull (\(\sigma \approx 0.01\text{ S/m}\)).