Hello there! I'd like to use the cloud-in-cell routine to interpolate particles onto a grid in order to get the density (for the gravity solver)
According to cic_interp_c.c file this is the input:
ndim - dimensionality */
/* cellsize - the cell size of field */
/* dim1,2,3 - real dimensions of field */
/* field - field to interpolate from */
/* leftedge - the left edge(s) of field */
/* npositions - number of particles */
/* posx,y,z - particle positions */
/* sumfield - 1D field (length npositions) to interpolate into */
What type of field as input do I have to have?
The only I have is N body particle positions and velocities. Do I need extra information to compute de density?
Also, I'd like to know what Is the meaning of sumfield,.
I know my questions are very simple but I'll be grateful if someone can help me