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

current through hole #118

Open
Damm22 opened this issue Jan 16, 2025 · 3 comments
Open

current through hole #118

Damm22 opened this issue Jan 16, 2025 · 3 comments

Comments

@Damm22
Copy link

Damm22 commented Jan 16, 2025

After running my simulations I realized, that there is some current runnigng through the hole.

Image

Is it possible to remove the mesh inside the hole?
I am having trouble calculating the Inductance of my devices. While I can easily calculate the inductance, the result is heavily dependent on the mesh size.

@loganbvh
Copy link
Owner

loganbvh commented Jan 16, 2025 via email

@Damm22
Copy link
Author

Damm22 commented Jan 17, 2025

this is what my device looks like:

Image

and this is how I simulate and calculate the Inductance

applied_field = sc.sources.ConstantField(B * c.mu_0 * 1e9)
terminal_currents = {"squid": {"source": f"0 mA", "drain": f"-0 mA"}}
solutions = sc.solve(
                    device=device,
                    terminal_currents=terminal_currents,
                    circulating_currents={'hole': 1},
                    applied_field=applied_field,
                    field_units="uT",
                    current_units="mA",
                )
solution = solutions[-1]

I_circ = solution.circulating_currents["hole"] * device.ureg(solution.current_units)
fluxoid = solution.hole_fluxoid("hole")
L = (sum(fluxoid) / I_circ).to("Phi_0 / A")

however when I use different grid sizes I get different results:

Image

(the different colors stand for different hole sizes [nm])

I dont get such weird results with other devices. (I tried a ring, a ring with two constriction junctions and even a triagle with two constriction junctions)

@loganbvh
Copy link
Owner

Can you try using device.mutual_inductance_matrix() to calculate the inductance (example here).

I would also suggest simulating a much smaller region of the device (just near the hole, for example y > -300 nm) with a finer mesh to get the hole inductance. The big leads will not change the self-inductance of the hole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants