Quasiclassical method for Josephson network in magnetic field