sarkas.utilities.maths.force_error_approx_pppm#

sarkas.utilities.maths.force_error_approx_pppm(potential)[source]#

Calculates the force error, \(\Delta F_{\rm pm}\), for the PPPM algorithm using approximations given in [Dharuman et al., 2017]. The formula for \(\Delta F_{\rm pm}\) can be found in Force Error.

Parameters

potential (sarkas.potentials.core.Potential) – Potential class with all the required information.

Returns

  • tot_force_error (float) – Total force error given by the L2 norm of the PP and PM force errors.

  • pppm_pm_err (float) – PM force error.

  • pppm_pp_err (float) – PM force error.