better structure. most of task 1 done

This commit is contained in:
2025-01-03 14:20:22 +01:00
parent 65c21c6033
commit 77a4959fe2
13 changed files with 1032 additions and 430 deletions

Binary file not shown.

Binary file not shown.

23
nbody/reference/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