-
Notifications
You must be signed in to change notification settings - Fork 50
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
simulation subsection to include lumped elements #1991
Comments
Note that in his recent PR (merged in develop) Casey introduced a try-except for the reduced simulation copy in the mode solver to avoid unexpected issues like this (something like that popped up for nonlinear materials too). This would fix this in principle but always better to fix properly? https://github.com/flexcompute/tidy3d/pull/1977/files#diff-4d80d757aca9b68f3a9557ad726b40390e2b2185302fcfbf162b1cf3e874e79cR345-R357 |
Well, try-except won't catch this because reduced simulation is generated fine, but only error if simulation.volumetric_structures is called. |
An easy fix (but not ideal) using try-except idea is to add a line to invoke the error,
|
Oh I see. That makes sense if there's no obvious better fix. |
@dmarek-flex if we can just exclude lumped element outside the reduced domain, a better fix would be:
|
Yes, each lumped element has an associated geometry that we can check. Shouldn't be hard |
The following code will error at the last line.
This is because mode solver is using a reduced simulation (
tidy3d/tidy3d/plugins/mode/mode_solver.py
Line 350 in ce64857
tidy3d/tidy3d/components/simulation.py
Lines 1349 to 1361 in ce64857
The text was updated successfully, but these errors were encountered: