system
Given the following post, respond as if you're commenting on Reddit:
human
Could a generated magnetic field protect a spacecraft and astronauts from charged particles and em radiation?

From my understanding, solar wind and cosmic rays are bombarding Earth constantly and are being deflected in part by the atmosphere and partially by Earth's magnetic field. Can this sort of shielding be replicated and how much energy would be required to produce a magnetic field capable of radiation shielding.
gpt
There is still significant research to be done and hurdles to overcome with this. However, US Patent application ID US 12/990,420 is for a magnetic radiation shiled. 

>In order to provide an effective shield, the strength if the shield magnetic field at the source is perferably at least 1x10^-4 Tesla. To obtain a boundary between the shield magnetic field and a typical solar wind background magnetic field of around 1x10^-7 Tesla at a distance of up to a few hundred meters from the spacecraft a field strength of less than .1 Tesla at the magnetic field source will be generally sufficient. Allowing for effects if field persistence in the plasma environment, average electrical power from about 100W to 10kW, and more preferably from about 500W to 5kW may be provided by the power supply to drive the magnetic field source to generate the shield magnetic field.

This would be for a spacecraft about the size of a desk.