sarkas.potentials.force_pm.assgnmnt_func
sarkas.potentials.force_pm.assgnmnt_func#
- sarkas.potentials.force_pm.assgnmnt_func(cao, x)[source]#
Calculate the charge assignment function as given in Ref.:cite:Deserno1998
- Parameters
cao (int) – Charge assignment order.
x (float) – Distance to the closest mesh point.
- Returns
W (numpy.ndarray) – Charge Assignment Function. Each element is the fraction of the charge on each of the cao mesh points starting from the far left.