RE: [fluka-discuss]: DOUBTS REGARDING LATTICE CARD IN FLUKA

From: Eleftherios Skordis <eleftherios.skordis_at_cern.ch>
Date: Wed, 8 May 2019 09:58:50 +0000

Dear Riya,

"1. Suppose, inside a cube of length 1 cm in each side , 1000 spheres are situated. I want to create a similar cube containing same 1000 spheres by transforming the previous cube along z with some delta z value. Do I need to use transformation card for each of these 1000 spheres? Or is there any way to define the cube and the 1000 spheres as a unit and transform that single unit along z ?

This is exactly how the lattice card works. When you define a region as lattice the container body of that region should match, using a transformation, the container body of the region of your prototype of interest. The inside structure of the prototype region, other than the container body, can have any shape and will be replicated as well. You can find an example attached.


"2. I could not understand the use of index of rotation (i). For example, if we want to transform along Z axis, then inside ROT-DEFI card, in the axis option of WHAT(1), we select z which indicates j = 3. Now, if we use many such transformations along z, do we need to select different index of rotation for each transformation ? ( For example, you have used Id = 1 and 2 for tr1 and tr2)."

The index of rotation can be put to 0 and then fluka will assign an incremental number to that specific rotation similar to what is done with the material numbers. So if you have a lot of different transformations they you don't have to worry about setting that number.
Alternatively you can choose to set it yourself to all your transformations, instead of setting a name. By using either the same index or the same name on multiple transformation cards then these transformations are applied as one when called with their assigned common name or index.


I suggest you take a look at the following presentation for further information and more advanced uses of the lattice function in fluka.
http://www.fluka.org/content/course/NEA/lectures/Lattice.pdf

Kind regards

Lefteris

as


-----------------------

Eleftherios Skordis
Dep. EN/STI, CERN
CH-1211 GENEVA 23
SWITZERLAND

OFFICE: +41-22-7679541<tel:%2B41-22-7675461>
________________________________
From: riya dey [riyadey_at_barc.gov.in]
Sent: 08 May 2019 06:59
To: Eleftherios Skordis; fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: DOUBTS REGARDING LATTICE CARD IN FLUKA

Dear Lefteris,

Thank you for your detailed explanation. I have again some doubts regarding the use of lattice card.


1. Suppose, inside a cube of length 1 cm in each side , 1000 spheres are situated. I want to create a similar cube containing same 1000 spheres by transforming the previous cube along z with some delta z value. Do I need to use transformation card for each of these 1000 spheres? Or is there any way to define the cube and the 1000 spheres as a unit and transform that single unit along z ?



2. I could not understand the use of index of rotation (i). For example, if we want to transform along Z axis, then inside ROT-DEFI card, in the axis option of WHAT(1), we select z which indicates j = 3. Now, if we use many such transformations along z, do we need to select different index of rotation for each transformation ? ( For example, you have used Id = 1 and 2 for tr1 and tr2).



3. Can you please send me the lattice.f program with modifications in accordance with the previous example, so that I can understand how to generate the lattice using the inbuilt options as well as using lattice.f program ?

Thanks and Regards

Riya Dey

From: owner-fluka-discuss_at_mi.infn.it [mailto:owner-fluka-discuss_at_mi.infn.it] On Behalf Of Eleftherios Skordis
Sent: 07 May 2019 18:55
To: riya dey <riyadey_at_barc.gov.in>; fluka-discuss_at_fluka.org
Subject: RE: [fluka-discuss]: DOUBTS REGARDING LATTICE CARD IN FLUKA

Dear Riya,

thank you for your questions. I have attached a modified version of your input file were your questions are implemented.

"1. If we want to create two replicas of target3, can it be done using single transform card and single lattice card?"

I believe this is not possible due to the fact that for each replica there can be only one unique transformation pointing to the original prototype. So the same prototype needs a unique transformation for each replication.

"2. Now, I want to replicate target1 also. Is it possible to replicate these two target cards (target1 and target3) using single transform card and single lattice card ?"

This is indeed possible but only if the replicas are transformed "equally". E.g. if both replicas need to be just +20cm to the z axis.

3. What is the difference between transform card and lattice card?

A transformation card is by no means related to the lattice card. The transformation card is useful for a number of different occasions were transformation of bodies, usrbins etc. are needed.
The lattice card is there to indicate that a certain region should be considered as a lattice region and it provides the information needed for the correct transformation of particles to the prototype. I.E. the transformation using a certain rot-defi card or a series of rot-defi cards etc.

"4. How to assign materials in the replicated region?"

You can in principle assign any material or no material at all. Anyway the code knows that the region is considered a lattice and therefor ignores the material of the specific region and only considers the geometry of the prototype.

"5. If new lattices are created using lattice card, how to get the USRBIN scoring in those lattice regions since in the USRBIN card, these lattice names are not appearing?"

Spacial USRBINs work as normal with lattices since they are overlaid on top of the geometry, so there is nothing special needed.

USRBINs that are per region will score the addition of the relevant quantities in both the prototype and the replicated regions.

If you want to extract separately the information of each lattice then you can use the "special binning" option What(1)= 8 or 18 (please see manual for the other what values in this case).

Hope this helps

Kind regards

Lefteris




-----------------------

Eleftherios Skordis
Dep. EN/STI, CERN
CH-1211 GENEVA 23
SWITZERLAND

OFFICE: +41-22-7679541<tel:%2B41-22-7675461>
________________________________
From: owner-fluka-discuss_at_mi.infn.it<mailto:owner-fluka-discuss_at_mi.infn.it> [owner-fluka-discuss_at_mi.infn.it] on behalf of riya dey [riyadey_at_barc.gov.in]
Sent: 06 May 2019 08:51
To: fluka-discuss_at_fluka.org<mailto:fluka-discuss_at_fluka.org>
Subject: [fluka-discuss]: DOUBTS REGARDING LATTICE CARD IN FLUKA
Dear FLUKA Experts,

I have some doubts regarding creating geometry with the help of LATTICE card. A simple input is attached here. Here I have created two target regions, namely, taget1 and target3. When I want to create a replica of target3, I have used transform card at the same location where target3 is situated and named that region as replica3. Then I have used LATTICE card for the region replica3

Now, my questions are:


1. If we want to create two replicas of target3, can it be done using single transform card and single lattice card?

2. Now, I want to replicate target1 also. Is it possible to replicate these two target cards (target1 and target3) using single transform card and single lattice card ?

3. What is the difference between transform card and lattice card?

4. How to assign materials in the replicated region?

5. If new lattices are created using lattice card, how to get the USRBIN scoring in those lattice regions since in the USRBIN card, these lattice names are not appearing?

Thanks and Regards

Riya Dey





__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info

Received on Wed May 08 2019 - 13:19:04 CEST

This archive was generated by hypermail 2.3.0 : Wed May 08 2019 - 16:16:36 CEST