How to plot the magnetic field intensity

Dear FLUKA team,
i have some problems about plotting the field intensity in FLUKA.I want to plot uniform field intensity,but the result shows a strange picture .Would you please help me to figure out what’s the matter with the setting?



exmagf.inp (5.2 KB)

Dear yiteng Sun,

there is no field in your file, because you commented out “uniform”, but the magnetic field is only assigned via ASSIGNMAT if uniform is defined.

Best regards
Roman

exmagf.inp (5.2 KB)
Dear Roman,

this one is uncommented,whether they are different?I just want make sure the magnetic field is exist ,so i can plot them.

Dear yiteng Sun

you will have to make sure that the if/elif conditions of you MGNFIELD and ASSIGNMAT cards align.

Both “uniform” and “SYNCHRAD” are still commented out, and while the ASSIGNMAT does not require them anymore, they are the only options with a non-zero MGNFIELD.

For the active option “Cl10mm” (and others) you successfully create a MGNFIELD but is has zero strength. If you change the MGNFIELD for “Cl10mm” accordingly, e.g. By=5.0, you will see it in the plot.

Also note that you have two active options with a MGNFIELD, one of them, the “RK1mm” is assigned (via the SDUM) to a RUNGKUTT field that does not exists. You will have to initiate it with a MGNCREATE card.

1 Like

Dear Roman,
thanks for your assistance,things same work out!

Best regards