How do I … 👀#
Work with the Tidy3d Package#
How do I… |
Solution |
---|---|
See the version of tidy3d I am using? |
In python, after importing tidy3d, run print(tidy3d.__version__). Or, do this through the command line via python -c “import tidy3d; print(tidy3d.__version__)”. |
Work with Tidy3d Components#
How do I… |
Solution |
---|---|
Get help related to a Tidy3d object ( |
|
Save and load any Tidy3d object? |
If the object |
Get all data in a Tidy3d object as a dictionary. |
|
Plot Tidy3D Components#
How do I… |
Solution |
---|---|
Plot an object with a spatial definition? ( |
|
Change the object plotting characteristics (facecolor, edgecolor, etc). |
Plotting keyword arguments can be supplied to |
Change the global plot characteristics (title, size, etc). |
The plotting function return a matplotlib |
Create Geometries#
How do I… |
Solution |
---|---|
Load a structure from GDS format? |
From a cell in the |
Create a complex geometry, such as a ring? |
While many complex geometries can be created by supplying the vertices to |
Materials#
How do I… |
Solution |
---|---|
Create a lossy material (with a conductivity)? |
|
Create a material from n, k values at a given frequency? |
|
Create an anisotropic material? |
|
Create a dispersive material from model parameters? |
Call one of the dispersive models with your parameters, for example |
Create an active material? |
Tidy3D by default will not allow medium specifications that give rise to active materials to avoid potential divergence. However, you can override this by setting the field |
Create a spatially varying material? |
Call one of the “Custom-” materials, e.g. |
Load a commonly-used dispersive material? |
Import one of several material models from our |
Work with Simulation Data#
How do I… |
Solution |
---|---|
Load the data from a simulation task id task_id into the python client? |
Using the web API |
Access the original |
|
Print the log file of the task? |
|
Save and load the |
|
Access the data for a specific |
|
Interpolate the electromagnetic field data at the Yee cell centers? |
|
Work with Monitor Data#
How do I… |
Solution |
---|---|
Get my monitor’s data from a |
|
Select the data at a certain coordinate value (ie. |
|
Get the data at certin index into a coordinate (ie |
|
Interpolate the data at various coordinate values, eg. field data at the origin ( |
|
Get the real part, imagninary part, or absolute value of complex-valued data. |
|
Get the raw data values as a |
|
Get a specific field component (eg. |
|
Plot Data#
How do I… |
Solution |
---|---|
Plot the |
|
Plot the |
|
Plot the simulation structure on top of my field plot? |
|
Submit Jobs to Server#
How do I… |
Solution |
---|---|
Submit my simulation to run on Flexcompute’s servers? |
|
Upload a job to the web without running it so I can inspect it first? |
Once you’ve created a |
Monitor the progress of a simulation? |
|
Load the results of a simulation? |
|
See information about my |
After uploading your job with |
Submit multiple simulations? |
The |
Loop through |
|
Save or load a |
Like most other tidy3d objects, |
Extensions#
How do I… |
Solution |
---|---|
Create a material from optical n,k data? |
Refer to the Dispersion tutorial on the |
Specify the modes for a |
Refer to the Mode Solver tutorial on the |
Project electromagnetic near field data to the far field? |
Refer to the FieldProjections tutorial. |
Compute scattering matrix parameters for modeling my device? |
Refer to the S Matrix tutorial on the |