I read this question about feasibility of capturing hydrogen from the Solar wind a while ago. Hydrogen in solar wind was exploited in that discussion. Here, does cosmic ray often close in towards a planet (Venus, Mars) in predictable orientation? If so, can the energy and atoms in the cosmic ray be at least partially captured and exploited?
Thank @Elmore and @PcMan for their comments. Lightning occurs when positively charged clouds connect with the negatively charge ground. If theirs stand, can an artificial atmosphere with dense clouds and frequent lightning absorb or adsorb the positively charged atomic nuclei? The electrons of the nuclei will still arrive at the planet to make overall charge neutral; meanwhile lightning brings foreign electrons to those bare atomic nuclei. Per Elmore, I would think a planet as a whole can absorb and transform the electric energy by a medium sized nuclear reactor outputs through lightning into thermal energy: raising the atmospheric temperature. If cosmic rays consist mostly of protons and electrons, hydrogen-1s after losing their energy can chemically make water vapor with oxygen in the atmosphere.