Function crpropa::meanFieldVector

Function Documentation

Vector3f crpropa::meanFieldVector(ref_ptr<Grid3f> grid)

Evaluate the mean vector of all grid points.

Parameters:

grid – a vector grid (Grid3f)

Returns:

The mean of all grid points along each axis