question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Meep integration: cell size not correctly calculated

See original GitHub issue

The size of the Mode monitor is not correctly taken into account for bends:

from gdsfactory.components import bend_euler
from gdsfactory.simulation.gmeep import write_sparameters_meep
from gdsfactory.simulation.effective_permittivity import calculate_effective_permittivity

bend = bend_euler(radius=5)
material_name_to_meep = {
    'si': float(calculate_effective_permittivity(3.477 ** 2, 1.444 ** 2, 1.444 ** 2, .22, 1.55, 'te')[0] ** .5)}
write_sparameters_meep(bend, resolution=20, is_3d=False, animate=True, material_name_to_meep=material_name_to_meep)

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
joamatabcommented, Aug 10, 2022
1reaction
joamatabcommented, Jun 30, 2022

another way to automatically fix these issues is to add port_markers

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - MEEP Documentation - Read the Docs
What is an estimate of the memory requirements of a simulation given only its cell size and resolution? Can Meep be compiled to...
Read more >
Python Tutorial - NanoComp/meep - GitHub
We compute the fluxes through a line segment twice the width of the waveguide, located at the beginning or end of the waveguide....
Read more >
Meep Tutorial - AbInitio
The last no-size parameter says that the computational cell has no size in the z direction, i.e. it is two-dimensional.
Read more >
Simulations of electromagnetic waves with python-meep
Summary: This page is based on my experience with the MEEP Finite-Difference Time-Domain simulations. Installation procedure, basic simulation, ...
Read more >
ios - Using Auto Layout in UITableView for dynamic cell ...
This // is important so that we'll get the correct cell height for different // table view widths if the cell's height depends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found