prepare_three_pool

prepare_three_pool#

torchsim.base.prepare_three_pool(T1a, T1b, T2a, T2b, k1, k2, weight_b, weight_c)[source]#

Prepare simulation parameters for a three-pool Bloch-McConnell + Magnetization Transfer model.

Parameters:
  • T1a (torch.Tensor) – Longitudinal relaxation time for pool a (ms).

  • T1b (torch.Tensor) – Longitudinal relaxation time for pool b (ms).

  • T2a (torch.Tensor) – Transverse relaxation time for pool a (ms).

  • k1 (torch.Tensor) – Exchange rate(s) between pool a and b (1/s).

  • k2 (torch.Tensor) – Exchange rate(s) between pool b and c (1/s).

  • weight_b (torch.Tensor) – Fractional weight of pool b.

  • weight_c (torch.Tensor) – Fractional weight of pool c.

  • T2b (Tensor)

Returns:

  • Longitudinal relaxation rate(s) for all pools (1/s).

  • Transverse relaxation rate(s) for all pools (1/s).

  • Exchange matrix.

  • Weight tensor for all pools.

Return type:

tuple of torch.Tensor