Skip to content

Conversation

FilipeFcp
Copy link
Contributor

Hi all. A user asked for an example of how to calculate phase. I had this a long time ago as part of the vortex metasurface notebook .
I didn’t include it in the notebook, but I thought it would be a good idea to make a simple example for it.

Almost all comments in the code are AI-generated

Copy link
Contributor

github-actions bot commented Oct 13, 2025

Spell Check Report

PhaseChangeAntennas.ipynb:

Cell 1, Line 3: 'V-shaped'
  > This notebook reproduces the phase behavior of cross-polarized scattering from gold V-shaped antennas on a silicon substrate, as demonstrated in the following paper:
Cell 16, Line 5: 'dataScatteringCylinders'
  > results = batch.run(path_dir="dataScatteringCylinders")
Cell 20, Line 1: 'On-Axis'
  > ### Extracting On-Axis Phase Delays
Cell 26, Line 4: 'dataScatteringCylindersPeriodic'
  > results_periodic = batch_periodic.run(path_dir="dataScatteringCylindersPeriodic")

Checked 1 notebook(s). Found spelling errors in 1 file(s).
Generated by GitHub Action run: https://github.com/flexcompute/tidy3d-notebooks/actions/runs/18570440481

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.

Thanks @FilipeFcp . This is the prelude of the vortex beam generation notebook you created.

In this notebook you used PML on x and y and used the field monitor to extract the phase. I wonder if it's more common to use periodic boundary (local periodic approximation) and diffraction monitor? Is there a particular reason why you chose to use pml? I suspect both methods will give you very similar results.

Copy link
Contributor

@alec-flexcompute alec-flexcompute left a comment

Choose a reason for hiding this comment

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

Nice job @Filipe! I have just two suggestions:

  1. In cell 2, maybe specify what the "hemisphere" parameter does in the function

  2. Maybe plotting one of the simulations before running so we can visualize the field and source setup

@FilipeFcp
Copy link
Contributor Author

@tomflexcompute
Yes, using the DiffractionMonitor and PBC yields the same results (with a smaller computational domain).
Do you think I should keep both approaches for didactic reasons, or just use the DiffractionMonitor approach?

@tomflexcompute
Copy link
Contributor

@tomflexcompute Yes, using the DiffractionMonitor and PBC yields the same results (with a smaller computational domain). Do you think I should keep both approaches for didactic reasons, or just use the DiffractionMonitor approach?

Yes I think showing both approaches would be great.

@FilipeFcp
Copy link
Contributor Author

Thanks, everyone.

I’ve made the changes based on Alec’s comments and added the section using the DiffractionMonitor.

Thanks!

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.

3 participants