mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Applying translation for mesh surface filters.
This commit is contained in:
parent
08e4b43d94
commit
711d9267bd
1 changed files with 5 additions and 0 deletions
|
|
@ -13,6 +13,11 @@ MeshSurfaceFilter::get_all_bins(const Particle& p, TallyEstimator estimator,
|
|||
{
|
||||
Position r0 = p.r_last_current_;
|
||||
Position r1 = p.r();
|
||||
if (translated_) {
|
||||
r0 -= translation();
|
||||
r1 -= translation();
|
||||
}
|
||||
|
||||
Direction u = p.u();
|
||||
model::meshes[mesh_]->surface_bins_crossed(r0, r1, u, match.bins_);
|
||||
for (auto b : match.bins_) match.weights_.push_back(1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue