Skip to content

Create a new class for particle ray tracing #3833

@vitmog

Description

@vitmog

Description

The new ParticleRay class should be derived from the Ray class, and it will implement the computation of geometrical, XS, and time parameters of the cell crossings by a ray emitted from the given origin location in the given direction both with and without usage of known geometry state. Also, it will provide the following optional abilities:

  • Limit the geometrical/optical/time length of the ray;
  • Enable/disable the XS/time computations;
  • Keep the crossed cell, geometry length, XS, and time segment-wise data in a std::vector entity for further reusing;
  • Provide an alternative way to fill the ray during the ordinary particle tracing process;
  • Provide an API for moving a particle along the ray on the given geometrical/optical/time distance.

Such feature aims to simplify the implementation and code maintenance of a wide range of diverse efficient techniques intended predominantly for fixed-source problems, for example:

Also, the proposed encapsulation will allow us to implement the saving of a ParticleRay entity in secondary_bank. Then, the multiple reuse of a once-filled ray is able to dramatically improve performance of aggressive splitting during free path length sampling in highly absorbing media instead of exponential transform.

This approach has proved to be efficient in my experience.

The implementation of ParticleRay is quite straightforward in general, and it can be started as an extension of the similar existent class VolEstRay from PR #3645. In principle, the ParticleRay implementation should replace VolEstRay if the Ray Tracing Volume Calculation reviewing process advances.

I am looking for feedback.

Alternatives

To leave it as is and implement specific the geometry tracing functionality for each case where it is needed.

Compatibility

Internal modification, no API changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions