TI
tit.sim.TI ¶
2-pair Temporal Interference (TI) simulation.
Implements :class:TISimulation, the concrete BaseSimulation subclass
for standard 2-pair TI stimulation. The session structure mirrors the
official SimNIBS TI example:
- SESSION with two TDCS lists (one per electrode pair)
deepcopypattern for the second pairTI_maxcomputed withTI.get_maxTIon cropped meshesTI_normalcomputed on cortical surface overlays
Output mesh includes per-pair E-field magnitudes and TI_max,
matching the reference visualisation layout.
See Also¶
BaseSimulation : Abstract base class providing the run template.
mTISimulation : N-pair multi-channel TI variant.
SimulationConfig : Configuration consumed by the simulation.
run_simulation : Top-level orchestration that dispatches to this class.
TISimulation ¶
TISimulation(config: SimulationConfig, montage: Montage, logger)
Bases: BaseSimulation
Run a single 2-pair TI simulation.
Pipeline¶
- Set up BIDS output directory structure.
- Visualize electrode placement.
- Build SimNIBS SESSION, run FEM.
- Compute
TI_max(volume) andTI_normal(surface). - Extract GM/WM meshes, convert to NIfTI, organize outputs.
See Also¶
BaseSimulation : Parent class with shared setup and template run.
mTISimulation : Multi-channel variant for 4+ electrode pairs.