forked from Aquila-Consortium/JaxPM_highres
Update jaxpm/pm.py
Co-authored-by: Francois Lanusse <EiffL@users.noreply.github.com>
This commit is contained in:
parent
dd71d359e0
commit
3df0c05d29
1 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,9 @@ def make_ode_fn(mesh_shape):
|
|||
def pgd_correction(pos, params):
|
||||
"""
|
||||
improve the short-range interactions of PM-Nbody simulations with potential gradient descent method, based on https://arxiv.org/abs/1804.00671
|
||||
args:
|
||||
pos: particle positions [npart, 3]
|
||||
params: [alpha, kl, ks] pgd parameters
|
||||
"""
|
||||
kvec = fftk(mesh_shape)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue