Hi,
I find the PPPM method gave me a very different answer from the cut-off method when I calculated
the electrostatic potential between two charges in two dimentions. I don't think the result from
PPPM method is correct. Could anyone tell me what's wrong? My results are as following:
From cut-off method:
units lj #default
dimension 3
newton on #default
boundary p p f
atom_style charge
pair_style lj/cut/coul/cut 2.5 7.5
pair_coeff 1 1 0 5.0 5.61230
pair_modify shift yes
pair_write 1 1 23 r 4.5 10.0 pairPotential type11 1 1
The result (from pair_write command) is:
1 4.5 0.222222 0.0493827
This is correct.
From PPPM method:
units lj #default
dimension 3
newton on #default
boundary p p f
atom_style charge
pair_style lj/cut/coul/long 2.5 7.5
pair_coeff 1 1 0 5.0 5.61230
pair_modify shift yes
kspace_style pppm 0.001
kspace_modify slab 3.0
pair_write 1 1 23 r 4.5 10.0 pairPotential type11 1 1
The result (from pair_write command) is:
1 4.5 0.00626722 0.00917555
I don't know why PPPM gave ame such a different answer. Please help me figure it out.
Thank you in advance!
Dongsheng