prepare_two_pool_bm

prepare_two_pool_bm#

torchsim.base.prepare_two_pool_bm(T1a, T1b, T2a, T2b, k, weight_b)[source]#

Prepare simulation parameters for a two-pool Bloch-McConnell 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).

  • T2b (torch.Tensor) – Transverse relaxation time for pool b (ms).

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

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

Returns:

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

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

  • Exchange matrix.

  • Weight tensor for both pools.

Return type:

tuple of torch.Tensor