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

Mesh based source + domain rejection #2817

Open
giovanni-mariano opened this issue Dec 27, 2023 · 1 comment
Open

Mesh based source + domain rejection #2817

giovanni-mariano opened this issue Dec 27, 2023 · 1 comment
Labels

Comments

@giovanni-mariano
Copy link

I am experimenting the new feature in the develop branch to create mesh based particle sources. I want to report that (at least to my understanding) the domain rejection feature should not be used with them: indeed, the particles are rejected on the basis of the position (or material/universe) sampled in SourceSite IndependentSource::sample

p.r() = space_->sample(seed);

However, the actual position is sampled in SourceSite MeshSource::sample

// Replace spatial position with the one already sampled

So, in general the two sampled positions are different and the domain rejection should not be used, right? In case, a warning message could be useful.

Thanks Giovanni

@pshriwise
Copy link
Contributor

Thanks for reporting this @giovanni-mariano. You're right, particles are being rejected based on the source site position provided by IndependentSource. I think we overlooked that after a redesign in #2759 to allow use of arbitrary source types in the mesh elements. I'll look into correcting this early in the new year.

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

No branches or pull requests

2 participants