Solenoid magnetism problem