quartic2d.Interaction.set_method#
- Interaction.set_method(method, *, n=None, bias=None, subdivisions=None, N=None, h=None)#
Select the interaction quadrature and recompute
V.- Parameters:
method ({'fftlog', 'trapezoid', 'simpson', 'gl4', 'gl8', 'ogata'}) – Method used for the final radial interaction integrals.
n (int or None, optional) – FFTLog sequence length. Used only by
method='fftlog'.bias (float or None, optional) – FFTLog power-law bias. Used only by
method='fftlog'.subdivisions (int or None, optional) – Finite-grid refinement used by
trapezoid,simpson,gl4, andgl8.N (int or None, optional) – Ogata node count. Used only by
method='ogata'.h (float or None, optional) – Positive Ogata resolution parameter. Used only by
method='ogata'.
- Returns:
This instance after recomputing
Vand harmonic-pair contributions.- Return type:
- Raises:
ValueError – If
methodis unsupported or a supplied numerical parameter is invalid.ImportError – If
method='ogata'and the optionalhankeldependency is unavailable.
Notes
Method-specific parameters that are not supplied retain their current values. Changing the method clears cached Ogata data and any attached interaction convergence record.