Text this: Mean field calculation for optical grid dimensioning