Cosmic neutron ray energy spectrum data calculation problem?

Dear experts,

I simplified the computational model, using the air layer as the neutron source,the soil thickness is 6 m.The calculations were made using the cosmic neutron ray energy spectrum, but the resulting trend seems to be problematic.I can only calculate single-energy neutrons.

My calculations turn out to be such a trend:

The flux result trend of the relevant paper is:

How do I implement the following energy spectrum calculations?At the moment it seems that there is something wrong with the program.Please help me!

Cosmic.inp (2.9 KB)
cydnp.txt (7.2 KB)
source_spectrum.f (10.5 KB)

Fengfeng Xu
Thanks in advance!

Dear Fengfeng,

I could not reproduce your first plot, with the user routine you provided. Also, to make it run I had to remove the first line from the spectrum file.

Furthermore, what is the quantity of the second column? For me it seems, that the numbers are the values of a lethargy plot (dN/d(logE) = E*dN/dE), while the source routine expects dN/dE values.

With my assumption I get the following source spectrum:

neutron

Which resembles the ones on your second figure.

Cheers,
David

Dear Teacher David,

Thank you for your prompt reply.Your result is exactly what I want at the moment, but I myself seem to be unable to achieve it with the above program, and I keep reporting errors.



Cosmic.flair (1.8 KB)
cydnp.txt (7.1 KB)
source_spectrum.f (10.5 KB)

Is there a problem with my operation? It’s embarrassing.

Fengfeng
Thanks in advance!

Dear Fengfeng,

more meaningful error messages can be found in the .out, .log and/or .err files, located next to the input file or in the fluka_xxxx directories.

In this case the problem is with the character encoding of the spectrum file. See:

Cheers,
David

1 Like

Dear Teacher David,

Hello teacher, I’m back again. The program works fine, but it seems to have a different result than yours.After the program ended I chose “X*Y” in gnuplot, but the result was not good.

Professor David, am I going wrong somewhere again?Thank you very much for helping me.
Cosmic.flair (2.2 KB)
cydnp.txt (3.6 KB)
source_spectrum.f (10.5 KB)

Fengfeng
Thanks in advance!

Dear Fengfeng,

I don’t see any changes in your spectrum file or source routine, also the attached Flair project file has different plot settings compared to the figure you posted last.

For these reasons I couldn’t reproduce you last result.

My spectrum was scored immediately after the starting location of the neutrons, so that is maybe the reason you see a different result.

Cheers,
David

1 Like

Dear Teacher David,

Dear David, your judgment is correct. I gained a lot from this exchange and thank you again.This post can be closed.

Fengfeng