mTI
tit.sim.mTI ¶
N-pair Multi-channel Temporal Interference (mTI) simulation.
Implements :class:mTISimulation, the concrete BaseSimulation subclass
for multi-channel TI stimulation with an arbitrary even number of electrode
pairs (4, 6, 8, ...):
- Each pair produces one HF E-field via SimNIBS TDCS.
- Adjacent pairs are combined via binary-tree TI recursion.
- Intermediate TI vector fields are saved for inspection.
Example with 4 pairs (A/B/C/D)::
TI_AB = TI(E_A, E_B)
TI_CD = TI(E_C, E_D)
mTI = TI(TI_AB, TI_CD)
See Also¶
BaseSimulation : Abstract base class providing the run template.
TISimulation : Standard 2-pair TI variant.
SimulationConfig : Configuration consumed by the simulation.
run_simulation : Top-level orchestration that dispatches to this class.
mTISimulation ¶
mTISimulation(config: SimulationConfig, montage: Montage, logger)
Bases: BaseSimulation
Run a single N-pair mTI simulation (N >= 4, even).
Pipeline¶
- Set up BIDS output directory structure.
- Visualize electrode placement.
- Build SimNIBS SESSION (N TDCS lists), run FEM.
- Compute intermediate TI vector fields via binary-tree pairing.
- Compute final
mTI_maxfrom the combined TI field. - Extract GM/WM meshes, convert to NIfTI, organize outputs.
See Also¶
BaseSimulation : Parent class with shared setup and template run.
TISimulation : Standard 2-pair variant.