Region source with new source file format

Dear FLUKA experts
I would like to define a source inside a user defined region (imagine a strangely shaped phantom filled with radioactive nuclides). In this post an example with the old source file was provided. To simply copy the subroutine REGIOUNSOURCE in this source.f file to the new source_newgen.f file didn’t really work and due to my limited knowledge of Fortran and the use of the source file I would appreciate some help.
Thanks!
Lorenzo

Dear Lorenzo,

I updated the source_newgen.f user routine with the regionsource subroutine. You can activate it in the section 5.1.1.

source_newgen_with_regionsource.f (19.5 KB)

Cheers,
David

Fantastic, thanks a lot!

2 posts were split to a new topic: Multiple region sources in one simulation