-
Notifications
You must be signed in to change notification settings - Fork 64
Electric field monitor for Charge #2566
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
Conversation
Diff CoverageDiff: origin/develop...HEAD, staged and unstaged changes
Summary
tidy3d/components/data/unstructured/base.py
|
a22f358
to
8ff1ec8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7 files reviewed, 4 comments
Edit PR Review Bot Settings | Greptile
61b4a48
to
50d69e3
Compare
Looks good overall, but I wanted to discuss whether we should store Ex, Ey, and Ez separately or in a single Triangular/Tetrahedral-GridDataset. In FDTD field monitors we do store them separately, but I guess one big reason to do that there is that Ex, Ey, and Ez can live on different grids (in fact, it was default up until some point). Moreover, storing cartesian grid info typically doesn't require much memory in comparison to actual field data. For unstructured datasets storing grid info does actually take more memory that a single field, and it seems like at least in this PR Ex, Ey, and Ez are stored at the same locations. Do you see any other arguments towards storing them separately or as a single xarray? In my surface monitor PR I decided to go the single-array route and use indexed data array with additional coord tidy3d/tidy3d/components/data/unstructured/base.py Lines 410 to 412 in 2116575
|
Yes, that makes sense! Will do that. Thanks @dbochkov-flexcompute |
@dbochkov-flexcompute I just realized that we're already storing multiple solution in each of the |
yeah, I think that would make sense |
@dbochkov-flexcompute I updated this to use the same data array class you mentioned. There will probably be conflict when either this or your branch gets merged though but it should be pretty straightforward. |
ed5576e
to
9a91727
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Minor comments, also wondering what is your plan for the related current density monitor?
ca475c6
to
07a80d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
70 files reviewed, 2 comments
Edit PR Review Bot Settings | Greptile
Monitor tests Remove IndexedFieldDataArray
07a80d9
to
3df3e46
Compare
Greptile Summary
Adds electric field monitoring capabilities to the Charge simulation module, enabling visualization and analysis of steady-state electric fields with support for both tetrahedral and triangular mesh grids.
SteadyElectricFieldMonitor
class with Ex, Ey, Ez component monitoring and proper unit handling (V/μm)ignore_invalid_cells
parameter and cell-to-point data conversion for better visualization/mesh
section for improved code organizationVolumeMesher
with mesh refinement capabilities and grid validation for wave ports