Pulsar with beam and magnetic fields