Dear @chenjianqi,
-
Note that the magnetic field specified in the
GCR-SPEcard is a “special” magnetic field, which is not the same as a typical magnetic field specified with theMGNFIELDcard, and therefore cannot be plotted as theMGNFIELD. If I nonetheless find a way to plot it, I will get back to you. Generally, to plot a magnetic field defined via theMGNFIELDcard in FLAIR, you can:- go to the “Plot” tab
- “Add” a “Geometry” plot.
- In the bottom right of the header, at “Type”, click and select from the drop-down menu any of the three “Field” options.
- Specify the coordinates for the center (e.g. z=2.2e8, x=6.02e8) and the extension (du=dv=1e6) of your plots, where your magnetic field should be located.
-
I see in your fluscw.f routine, you are scoring each particle that arrives in your region of interest, for a total of
Mparticles, which obviously are not normalized to anything. When you launch your simulations, you should save the number of primariesNyou are using, and you would have the data ascounts/primary.
If you want to moreover normalize tocounts/(m^2 s sr), please note that the<ZA>phi0465.spcfiles contain a distribution, where the flux is already given inparticles/(m^2 s sr)/MeV. You should then compute the integrated flux from all these files, as Phi_{tot}, which will be in units ofparticles/(m^2 s sr)
Finally, the normalization of your results should be: M * Phi_{tot} / N -
Please refer to the FLUKA manual, and to add more info:
- In FLUKA, cosmic-ray positions are generated at geographic coordinates, but their propagation is bent and filtered by the geomagnetic field model at that location. In othe words, geographic coordinates are the user-facing input, but geomagnetic coordinates are internally mapped by the model.
- “Why” is this so it is more a question of convention/choice, as most space weather codes use geographic coordinates as the reference grid, and then apply the geomagnetic field model on top of them.
I hope this helps,
Daniel