Home Forums Nazca Questions and Answers Trace length

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4783
    alvin
    Member

    Are there any function to trace the length of waveguide travelled. Are there following function usable.

    nazca.cfg.trace_length(trace_id=None)
    nazca.cfg.trace_start(trace_id=None)
    nazca.cfg.trace_stop(trace_id=None)

    Many thanks.

    #4795
    Ronald
    Keymaster

    Dear Alvin,

    The trace has moved to its own module.
    Traces are registered for mask_elements and their derived elements like interconnects.
    Below an example to get the geometrical length of some interconnects put or for a specific element by reference:

    import nazca as nd
    import nazca.trace as trc
    import nazca.demofab as demo
    
    trc.trace_start()
    E1 = demo.deep.bend(angle=45).put()
    E2 = demo.deep.strt(length=100).put()
    trc.trace_stop()
    print(trc.trace_length(), E2.length_geo)

    output

    158.904862255 100

    Ronald

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.