Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Photon transport does not work #34

Open
kenyibo opened this issue Jun 7, 2023 · 0 comments
Open

Photon transport does not work #34

kenyibo opened this issue Jun 7, 2023 · 0 comments

Comments

@kenyibo
Copy link

kenyibo commented Jun 7, 2023

After I added the fixed source mode to the code, the neutrons got the correct tallies count, but the photon part was 0.

When I start photon transport, I encounter an assertion." assert(data::elements_size < = PHOTON_XS_SIZE);"
Then I ignored it and uncommented the code in physics.cpp,
// Create secondary photons if (settings::photon_transport) { p.stream_ = STREAM_PHOTON; sample_secondary_photons(p, i_nuclide); p.stream_ = STREAM_TRACKING; }
After adding settings::delayed_photon_scaling and settings::photon_transport on the device side, there are still some errors.

I see a lot of codes about photons on the device side, can photon transport be used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant