3.2. Cards
Flair is treating the input file as a list of extended cards;
Each extended card contains:
- comment:
All commented lines preceding the card(s) as well the inline comments
- tag:
The 8 character word identifying the card. All tags not recognized by flair will be converted to #error
- WHATs:
Multiple number of WHATs, and each one is numbered as:
0 = name/sdum1-6 = WHAT(1)..WHAT(6) on the first line7-12 = WHAT(1)..WHAT(6) on the first continuation line…- extra:
multi line string of extra information for special cards like
REGION
,TITLE
,PLOTGEOM
etc.- state:
Enable / Disable
Flair recognize automatically (and separates them from the comments) all the disabled valid FLUKA cards
The region definition in the in geometry is emphasized by the presence of a card
named REGION
;
All the COMPOUND
cards related to one material are joined in
one card;
Cards are edited with the flair editor through the use of the mini-dialogs, forcing the user to enter the correct information (default);
The user can nevertheless gain full control of the card using the Edit dialog [Ctrl-E];
Flair will try to find the best floating point representation of each number, to ensure the maximum accuracy; number of digits that fits in the specific width (10 for the fixed format, 22 for the free format).
Function evaluation: a field value starting with = will force flair to evaluate its content as a function e.g.
BEAMPOS x: =2*10+length
Flair will create a valid fluka input containing the evaluation of the formula and keep the formula inside the comments as
!@what.1 =2*10+length
Look the Function Evaluation Function evaluation for more details
3.2.1. Card Groups
FLUKA cards in flair are grouped into the following categories for easier accessing and more flexible editing of the input file:
Category |
Description |
---|---|
General |
Cards of general purpose (like |
Primary |
Cards dealing with the definition of the primary starting particles |
Geometry |
Cards related to the definition of the geometry bodies, regions, lattices plotting and rotations/translations |
…Bodies |
Subcategory containing only the bodies definitions |
…Transformations |
subcategory with only the geometrical transformation cards |
Media |
Cards for the definition of materials |
Physics |
Cards defining physics properties for the simulation |
Transport |
Cards that modify the way particles are transported in FLUKA |
Biasing |
Cards for importance biasing definition |
Scoring |
Cards related to scoring |
Flair |
Flair special cards e.g. drawing aids, text, lines etc… |
Preprocessor |
Preprocessor definitions for creating conditional input files |
- Tree Structure
+ Input Display the Input Editor complete file | +--- General Display only cards in the General category | +--- Primary -//- Primary category | +--+ Geometry -//- Geometry category | | | +--- Bodies -//- Bodies category | | | +--- Transformations -//- Bodies transformations | +--- Media -//- Media category | +--- Physics -//- Physics category | +--- Transport -//- Transport category | +--- Biasing -//- Biasing category | +--- Scoring -//- Scoring category | +--- Developers -//- Developers category | +--- Preprocessor -//- Preprocessor category
3.2.2. Card Anatomy
Each card in flair has a dedicated mini dialog (currently using 4 columns), which interprets in a human readable way all information stored in the card
The BEAM
card in FLUKA appears as

And in flair it will displayed as

Continuation cards like USRBIN
with name:&,
COMPOUND
cards that expand in multiple lines in flair will
appear as a single card

