wrote n(z) homogenisation module