Example #1
0
void PIC::densityXY(Grid2D& target)
{
  long j;
  target.reset();
  for(j=0; j<part.size(); j++)
	  target.Pic2Grid(macroN*charge_p/length,part[j].x,part[j].y);	
}
Example #2
0
void Pic::gatherXsYs(double pic_charge, Grid2D& target){
  long j;
  target.reset();
  for(j=0; j<pics.size(); ++j)
    target.Pic2Grid(pic_charge, pics[j].xs, pics[j].ys);
}