R-matrix solver¶
High-level R-matrix solver built on a Lagrange mesh.
- class jitr.rmatrix.rmatrix.Solver(nbasis, basis='Legendre', **args)[source]¶
Bases:
objectSolve coupled-channel Schrödinger equations with the R-matrix method.
- get_channel_block(matrix, i, j=None)[source]¶
Extract a channel block from a full block-structured matrix.
- interaction_matrix(k0, E0, a, nch, local_potential=None, nonlocal_potential=None)[source]¶
Build the interaction matrix from pre-evaluated potential arrays.
- solve(channels, asymptotics, local_potential=None, nonlocal_potential=None, interaction_matrix=None, free_matrix=None, basis_boundary=None, weights=None, wavefunction=False)[source]¶
Solve the scattering problem for one coupled set of channels.
- Return type:
- Parameters:
channels (Channels)
asymptotics (Asymptotics)
local_potential (ArrayLike | None)
nonlocal_potential (ArrayLike | None)
interaction_matrix (ndarray[tuple[Any, ...], dtype[complex128]] | None)
free_matrix (ndarray[tuple[Any, ...], dtype[complex128]] | None)
basis_boundary (ndarray[tuple[Any, ...], dtype[complex128]] | None)
wavefunction (bool)