Skip to content

Conversation

@FilipeFcp
Copy link
Contributor

Hi all.

Since a user used this notebook as a reference and had issues with kernel crashing during mode volume calculation, I made a small modification to reduce the memory usage, and also added a small discussion on how to use raw monitor data (without expanding symmetries) to calculate it.

@github-actions
Copy link
Contributor

github-actions bot commented May 1, 2025

Spell check passed successfully for 1 notebook(s).
Generated by GitHub Action run: https://github.com/flexcompute/tidy3d-notebooks/actions/runs/14799400335

Copy link
Contributor

@yaugenst-flex yaugenst-flex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @FilipeFcp looks good to me overall. Only thing I'm wondering is whether the interval_space change was necessary? It seems like you changed from coarse spatial sampling to coarse time-domain sampling, with a net memory decrease of a factor of 2, which sounds reasonable but I'm wondering keeping the coarser spatial sampling would change the results significantly?

Copy link
Contributor

@tomflexcompute tomflexcompute left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great @FilipeFcp . Seems like there is a 10-20% difference in the calculated mode volume. Are there results in the literature where we can benchmark the results?

@FilipeFcp
Copy link
Contributor Author

Thanks @yaugenst-flex

It doesnt change significantly, but it brings the results closer to those reported in the paper. For this type of calculation, I believe the error introduced by using the raw data is preferable to the loss of data caused by downsampling.

I added a comment regarding the interval_space in the notebook.

@FilipeFcp
Copy link
Contributor Author

@tomflexcompute Yes, the structure is from this paper. They report 0.39 (lda/n)^3

@tomflexcompute
Copy link
Contributor

@tomflexcompute Yes, the structure is from this paper. They report 0.39 (lda/n)^3

Great that's very good!

@tomflexcompute tomflexcompute self-requested a review May 2, 2025 18:25
@yaugenst-flex
Copy link
Contributor

@FilipeFcp if you could squash these commits it’s good to go

@FilipeFcp FilipeFcp merged commit 3926e47 into develop May 2, 2025
1 check passed
@yaugenst-flex yaugenst-flex deleted the filipe/nanobeam_mode_volume branch June 27, 2025 07:17
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

Successfully merging this pull request may close these issues.

4 participants