# Am-Be neutron source definition

**URL:** <https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202>\
**Category:** Source Definition\
**Created:** [12 February 2023 00:59 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202 "2023-02-12T00:59:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammed.fayiz](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mohammed.fayiz/32/5240_2.png) [@mohammed.fayiz](https://fluka-forum.web.cern.ch/u/mohammed.fayiz)\
**Post date:** [12 February 2023 00:59 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/1 "2023-02-12T00:59:16Z")

</div>

_ **Dear Colleague and Experts** _

1- Am-Be neutron source can have about 50% neutron (thermal and fast ) and 50% gamma ray fields.How we can describe both complex fields in one time in FLUKA.

- DOI:
- [10.1016/j.apradiso.2007.04.007](http://dx.doi.org/10.1016/j.apradiso.2007.04.007)

2- in previous [Mihaela Parvu](https://fluka-forum.web.cern.ch/u/Mihaela_Parvu) advised me to used **source\_newgen.f** for two gamma source. In this current case how can I use the same technique.

> [@Advance Multiple- complex Radioactive source](https://fluka-forum.web.cern.ch/t/advance-multiple-complex-radioactive-source/4135/8):
>
> Hello, I strongly suggest using the source\_newgen.f file instead of the source.f one. For example, if you want a beam with 50-50 Co-60 and Ba-133: double precision, save :: choose\_isotope choose\_isotope = FLRNDM (xdummy) radioactive\_isotope = .true. if (choose\_isotope \< 0.5) then heavyion\_atomic\_number = 27 heavyion\_mass\_number = 60 else heavyion\_atomic\_number = 56 heavyion\_mass\_number = 133 end if The photon spectrum will look like this: [image] I have also attac…

3- Also I read in FLUKA User Forum articles about the source spectrum text input, where I can read to have a full experience about this advanced topic?  
Best Regards  
Fayez

---

<div class="post-metadata">

**Author:** ![Mihaela\_Parvu](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mihaela_parvu/32/4005_2.png) [@Mihaela\_Parvu](https://fluka-forum.web.cern.ch/u/Mihaela_Parvu)\
**Post date:** [12 February 2023 15:01 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/2 "2023-02-12T15:01:11Z")

</div>

Dear Fayez,

Please take a look at the last two lectures of the day - [Source routines](https://indico.cern.ch/event/1123370/timetable/#20220519).  
Starting with FLUKA 4-3.0 release, if you know the neutron and photon spectra, you can use spectrum sampling.  
For example:

```
  ! 3.4.5. Sampling from spectrum
  ! ------
  ! Possible [unit]s: "TeV", "GeV", "MeV", "keV" "eV"
  ! "TeV/c", "GeV/c", "MeV/c", "keV/c", "eV/c"
  ! "J"
  ! Spectrum file has to have 2 columns:
  ! - Energy
  ! - Intensity

```

- 

```
 momentum_energy = sample_spectrum_momentum_energy( [filename], [unit] )
 
 double precision, save :: choose_part
 choose_part = FLRNDM (xdummy)      

```

  - 50% photon  
if (choose\_part \< 0.5) then  
particle\_code = 7  
momentum\_energy = sample\_spectrum\_momentum\_energy( [filename], [unit] )  
else
  - 50% neutron  
particle\_code = 8  
momentum\_energy = sample\_spectrum\_momentum\_energy( [filename], [unit] )  
end if

Hope this helps,  
Mihaela

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [12 February 2023 15:24 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/3 "2023-02-12T15:24:59Z")

</div>

Unfortunately the solution Mihaela is proposing won’t work out of the box, as the `sample_spectrum_momentum_energy` function will only read the first file passed to it.

The workaround is to duplicate the function (located in the _incude/source\_library.inc_ file) with a different name and use that for the second spectrum.

The feature to read multiple spectrum/histogram files is planned for a future release.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![mohammed.fayiz](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mohammed.fayiz/32/5240_2.png) [@mohammed.fayiz](https://fluka-forum.web.cern.ch/u/mohammed.fayiz)\
**Post date:** [13 February 2023 19:47 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/4 "2023-02-13T19:47:26Z")

</div>

Thank you [Mihaela Parvu](https://fluka-forum.web.cern.ch/u/Mihaela_Parvu) for the detailed methodology. I will try to implement your suggestions taking into account Dr. Dávid Horváth advice as well.

Regards,  
Fayez

---

<div class="post-metadata">

**Author:** ![mohammed.fayiz](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/mohammed.fayiz/32/5240_2.png) [@mohammed.fayiz](https://fluka-forum.web.cern.ch/u/mohammed.fayiz)\
**Post date:** [13 February 2023 19:59 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/5 "2023-02-13T19:59:17Z")

</div>

Sincere thanks and appreciation [Dávid Horváth](https://fluka-forum.web.cern.ch/u/horvathd) for the complete clarification which will direct us to the desired results.  
Best Regards  
Fayez

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [14 February 2023 07:19 UTC](https://fluka-forum.web.cern.ch/t/am-be-neutron-source-definition/4202/6 "2023-02-14T07:19:31Z")

</div>

Closed on 14 February 2023 07:19 UTC


