Re: [fluka-discuss]: Magnetic field in FLUKA input

From: Giuseppe Battistoni <>
Date: Mon, 22 May 2017 18:38:56 +0200

Dear Martin Xie
in your case, once you have defined the field
components with MGNFIELD, you activate the magnetic
field in a given material by means of the
ASSIGNMA card (see the manual)
I presume that you have a room filled with AIR, and
if you need to assign the mag field only to a part of the room region,
then you need to define a new air material, using
a different name of your choice, and assign it to
the region of interest.

Alternatively you can define the magnetic field
using a specific FLUKA user routine called
In order to use it see the manual for the MGNFIELD card
and chapter 13 for user routines in general.

        Giuseppe Battistoni

On 22/05/2017 18:18, Π»ΥρεΎ wrote:
> Hi dear fluka developers and users:
> I'm a FLUKA beginner, and I'm now building a very simple model, in which
> there's a *homogeneous magnetic field* in a cubic part of a room.(This
> field is to influence the trajectory of an electron beam passing through
> this cubic region.)
> So I wonder how can I define this magnetic field in my model? I noticed
> the *MGNFIELD* input card, but it seems that it can only define the
> value of Bx, By, Bz, cannot define the place where the magnetic field is
> placed. Is it OK to use the *MGNFIELD* card to achieve my goal? Or is
> there other ways to define a magnetic field in a certain place of the model?
> Thank you for your sincere help!
> Best regards,
> Martin Xie
> 2017.5.23

INFN Milano
via Celoria 16, 20133 Milano
tel: +39 02 50317307
fax: +39 02 50317617
You can manage unsubscription from this mailing list at
Received on Mon May 22 2017 - 19:32:23 CEST

This archive was generated by hypermail 2.3.0 : Mon May 22 2017 - 19:32:24 CEST