initial commit

This commit is contained in:
2024-11-30 14:20:30 +01:00
commit 795e2b5b92
22 changed files with 646317 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

450091
nbody/data/data.ascii Normal file

File diff suppressed because it is too large Load Diff

50010
nbody/data/data.txt Normal file

File diff suppressed because it is too large Load Diff

1009
nbody/data/data0.txt Normal file

File diff suppressed because it is too large Load Diff

1009
nbody/data/data0_noise.txt Normal file

File diff suppressed because it is too large Load Diff

9914
nbody/data/data1.txt Normal file

File diff suppressed because it is too large Load Diff

23
nbody/notes.md Normal file
View File

@@ -0,0 +1,23 @@
###
# Comparing with the analytical potential
Plot a log-log plot of rho(r):
- the discrete solution has poissonian error: 1/sqrt(N) where N is the number of particles in the bins
=> ensure the discretization is consistent
# Comparing forces
- Use newtons law by considering only the inner shells:
F_i = GM(R_i)/R_i^2
=> this should all be done with the .ascii file (All particles, not yet meshed)
## Task2
a) start with only the monopole and compare with the direct summation
only then build the tree code

0
nbody/utils/load.py Normal file
View File