MGNDATA implementation in Flair (and manual) vs. FLUKA

Versions

FLUKA: 4-5.1
Flair: 3.4-5.2
Operating system: Ubuntu 24.04

Description

I noticed a while ago that the Flair implementation of MGNDATA adheres to the FLUKA manual, but FLUKA does not. To sum it up:

The manual states:

However, the format that actually works in FLUKA is described here.

It is currently not possible to input this format in Flair. To make it work, I had to include the card with a text editor. The result looks like this:

So I suggest:

  1. correct the manual
  2. implement the corrected manual in Flair

Best regards
Roman

Hi @rmartin for reporting it.

Indeed in flair the MGNDATA card will appear as a single card due to the continuation “&” character in the SDUM of FLUKA.
Initially flair was treating all MGNDATA as separate cards, however for some huge 3D field maps it was becoming impossible to work.
If your field map doesn’t contain too many points you can edit it by selecting the card and click Ctrl-E to edit the parameters.

We are currently in the process of restructuring the way how flair handles the #include files into multiple tabs in the text editor, and then it could become possible to edit it.