TI
tit.sim.TI ¶
2-pair Temporal Interference (TI) simulation.
Session structure mirrors the official SimNIBS TI example
- SESSION with two TDCS lists (one per electrode pair)
- deepcopy pattern for the second pair
- TI_max computed with TI.get_maxTI on cropped meshes
- TI_normal computed on cortical surface overlays
Output mesh includes per-pair E-field magnitudes and TI_max, matching the reference visualisation layout.
TISimulation ¶
TISimulation(config: SimulationConfig, montage: Montage, logger)
Bases: BaseSimulation
Runs 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) and TI_normal (surface)
- Extract GM/WM meshes, convert to NIfTI, organize outputs