Comments (1)
Unfortunately shapes cannot overlap in legume, this is briefly discussed here. In simple simulations, you can go around this by just discretizing your merged shape as a Poly - note that FourierShape is just a wrapper around Poly, using a finite number of vertices to discretize the continuous Fourier shape. So this is doable, just needs a little more effort from the user. The real problem is optimizations, in which case ensuring shapes do not cross may be trickier. Unfortunately this is a fundamental limitation of the fact that we compute FT-s analytically for each shape, rather than on e.g. a finite grid after taking shapes overlaps into account, etc.
from legume.
Related Issues (20)
- For gme, viz.eps_ft does not work for 'abs'-initialized reciprocal lattice. HOT 2
- What's the meaning of 'phc.layers[-1].add_shape(legume.Circle(eps=1.0, r=r))'? HOT 2
- Inconsistency among autograd and finite-difference gradients HOT 6
- can legume support complex eps? HOT 1
- how to export the field data to a txt file? HOT 4
- MatplotlibDeprecationWarning: Passing parameters norm and vmin/vmax simultaneously is deprecated since 3.3 and will become an error two minor releases later. Please pass vmin/vmax directly to the norm when creating it. linewidth=markeredgewidth) HOT 1
- install, "requirements.txt" seems to be missing HOT 1
- Issue defining a figure and gridspec with eps_ft in vis.py HOT 1
- mode index of the quai-TE/TM modes of photonic crystal slabs HOT 3
- ValueError: operands could not be broadcast together with shapes (50,) (200,) HOT 7
- no callable exp method HOT 3
- "eps_eff" not gmode_eps
- Calculation of E/D Fields via Curl of H Field HOT 2
- Visualize the field component HOT 4
- Question autograd eigsh HOT 1
- Is posible to add a mirror/boundary condition on one side? HOT 2
- Comparison of quality factor obtained via Legume and an FDTD solver HOT 1
- Failed to calculate a BIC mode in 1D grating HOT 2
- Bands of a 1D photonic crystal slab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legume.