Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old HFSS Renderers have trouble with rendering designs w/ MultiPlanar. Something to do w/ junction rendering. #961

Open
clarkmiyamoto opened this issue Jun 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@clarkmiyamoto
Copy link
Contributor

clarkmiyamoto commented Jun 23, 2023

Information

  • Qiskit Metal version: 0.1.5
  • Python version: '3.11.3 | packaged by conda-forge | (main, Apr 6 2023, 08:50:54) [MSC v.1934 64 bit (AMD64)]'
  • Operating system: Windows 10

What is the current behavior?

When running the code below, we get a com error ending w/ a failed creation of a junction from the qgeometry table. This is weird as there are no junctions in our design.

I noticed that I was using MultiPlanar designs, and when I switched it to Planar, everything ran smoothly.

Steps to reproduce the problem

from qiskit_metal import draw, Dict, designs, MetalGUI
from qiskit_metal.designs.design_multiplanar import MultiPlanar

# Design
design = MultiPlanar()
gui = metal.MetalGUI(design)
design.overwrite_enabled = True

otg_opts = Dict(pos_x = '-1250um',
                pos_y = '1200um',
                orientation = '90',
                # width = cpw_width)
)
otg1 = OpenToGround(design, 'otg1', options = otg_opts)

clt1_opts = Dict(prime_width = cpw_width,
                prime_gap = '5.1um',
                second_width = cpw_width,
                second_gap = '5.1um',
                coupling_space = '7.9um',
                coupling_length = '225um',
                open_termination = False,
                orientation = '-90',
                pos_y = '1200um',)
                # down_length = '50um')

clt1 = CoupledLineTee(design, 'clt1', clt1_opts)

cpw1_opts = Dict(pin_inputs = Dict(start_pin = Dict(component = 'clt1',
                                                    pin = 'second_end'),
                                   end_pin = Dict(component = 'otg1',
                                               pin = 'open')),
                lead = Dict(start_straight = '50um'),
                fillet = '49.9um',
                total_length = '3815um',
                trace_width = cpw_width,
                meander = Dict(spacing = '100um'),
                trace_gap = '5.1um')
cpw1 = RouteMeander(design, 'cpw1', options = cpw1_opts)

# HFSS Analysis
from qiskit_metal.analyses.simulation import ScatteringImpedanceSim
em1 = ScatteringImpedanceSim(design, "hfss")

# Start HFSS Renderer
hfss = em1.renderer
hfss.start()

# render the design
hfss.clean_active_design()
hfss.render_design(selection=['cpw1'])

What is the expected behavior?

Should just render design to ANSYS.

Suggested solutions

Apon initializing the old ansys renderer, perform a check which flags a user if they're using a MultiPlanar design instead of a Planar Design. However I'm unsure if this will scale properly, will need to add checks for when people add new design types. Also unsure how FlipChip works, if that needs to be support.

Would appreciate feedback before attempting solution.

@clarkmiyamoto clarkmiyamoto added the bug Something isn't working label Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant