Skip to content

Simplify creating Raypath #35

@joha2

Description

@joha2

Typically raypaths are generated in three steps:

  • (o, k, E) = collimated[divergent]_bundle(num_rays, start_dict, wave=wavelength)
  • initialbundle = RayBundle(x0=o, k0=k, Efield0=E, wave=wavelength)
  • raypaths = s.seqtrace(initialbundle, sequence)

Implement these three steps into a convenience function. This is necessary since drawing, optimization and spotdiagramms usually need different number of rays or ray fans.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions