-
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
Add a phase parameter to frequency-domain monitor data. #1261
Comments
I am a bit confused by the title of this issue vs. what it's asking for. Are you suggesting a convenience method to create the entire animation, like a |
Assigning @tylerflex so that someone is on this, but feel free to reassign if you want. |
Both should work for the purpose of creating the animations, but I think adding the phase parameter would be more general, allowing the user to choose how to create the animations or plot a single field snapshot using a different phase. |
@e-g-melo could you explain what the API should look like for adding a phase parameter? like field_data = field_data.apply_phase(phase) or something directly stored in the field data? like |
We could include a phase parameter in the
And include a function like the
|
Wow! That was fast! I will try it. Thanks! |
actually need to fix one thing, give me a sec |
should be working now |
Fixed by #1271 |
Is your feature request related to a problem? Please describe.
In our meetings with professors interested in the teaching program, they frequently ask how to create field animations using Tidy3d.
Describe the solution you'd like
Currently, we have the FieldTimeMonitor, which allows us to create time-domain animations easily. However, animating the frequency-domain fields would be nice and less memory-intensive for teaching purposes. For example, to show how the waves propagate from a point-dipole source, we could animate the field phase, like below:
Describe alternatives you've considered
It is possible to get the field components from the FieldData object, change the phase, and create an animation. However, a built-in feature would help Tidy3D beginners.
Additional context

Other field animation example from mode data:
The text was updated successfully, but these errors were encountered: