Skip to content

Resonant beamsplitting solver limit #40

@StackEnjoyer

Description

@StackEnjoyer

In order to avoid infinite calculation loops under resonant conditions, the r_max kwarg limits the maximum number of traced beams per ray segment for the solve_system! interface.

However, this condition is applied to each new split beam in the beam tree, leading to no abort condition if e.g. a Fabry Perot interferometer is traced. This bug effects all subtypes of AbstractBeam.

Solution

Fix the solve_system! interface to track the depth of the split beams. Add e.g. a max_depth kwarg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions