doubled=q.position[0]-p.position[0];//calulates the euclidian distance squared
p.accumulator+=(q.concentration-p.concentration)*exp(-d*d/(4*g.epsilon*g.epsilon));//calculate the excange of strangth (concentration) between the neighbors
//p.accumulator+= (q.concentration-p.concentration)*exp(-d*d/(4*g.epsilon*g.epsilon ));//calculate the excange of strangth (concentration) between the neighbors