Changelog
Contents
Changelog#
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased#
2.5.2 - 2024-01-11#
Fixed#
Internal storage estimation for 3D surface integration monitors now correctly includes only fields on the surfaces, and not the whole volume.
2.5.1 - 2024-01-08#
Added#
ModeData.dispersion
andModeSolverData.dispersion
are calculated together with the group index.String matching feature
contains_str
toassert_log_level
testing utility.Warning in automatic grid generation if a structure has a non-zero size along a given direction that is too small compared to a single mesh step.
assert_log_level
adds string matching withcontains_str
and ensures no higher log level recorded than expected.AssertLogLevel
context manager for testing log level and automatically clearing capture.More robust validation for boundary conditions and symmetry in 1D and 2D simulations.
Changed#
jax
andjaxlib
versions bumped to0.4.*
.Improved and unified warning message for validation failure of dependency fields in validators.
Fixed#
Error in automatic grid generation in specific cases with multiple thin structures.
2.5.0 - 2023-12-13#
Added#
Ability to mix regular mediums and geometries with differentiable analogues in
JaxStructure
. Enables support for shape optimization with dispersive mediums. New classesJaxStructureStaticGeometry
andJaxStructureStaticMedium
accept regularTidy3D
geometry and medium classes, respectively.Warning if nonlinear mediums are used in an
adjoint
simulation. In this case, the gradients will not be accurate, but may be approximately correct if the nonlinearity is weak.Validator for surface field projection monitors that warns if projecting backwards relative to the monitor’s normal direction.
Validator for field projection monitors when far field approximation is enabled but the projection distance is small relative to the near field domain.
Ability to manually specify a medium through which to project fields, when using field projection monitors.
Added support for two-photon absorption via
TwoPhotonAbsorption
class. AddedKerrNonlinearity
that implements Kerr effect without third-harmonic generation.Can create
PoleResidue
from LO-TO form viaPoleResidue.from_lo_to
.Added
TriangularGridDataset
andTehrahedralGridDataset
for storing and manipulating unstructured data.Support for an anisotropic medium containing PEC components.
SimulationData.mnt_data_from_file()
method to load only a single monitor data object from a simulation data.hdf5
file._hash_self
to base model, useshashlib
to hash a Tidy3D component the same way every session.ComponentModeler.plot_sim_eps()
method to plot the simulation permittivity and ports.Support for 2D PEC materials.
Ability to downsample recorded near fields to speed up server-side far field projections.
FieldData.apply_phase(phase)
to multiply field data by a phase.Optional
phase
argument toSimulationData.plot_field
that applies a phase to complex-valued fields.Ability to window near fields for spatial filtering of far fields for both client- and server-side field projections.
Support for multiple frequencies in
output_monitors
inadjoint
plugin.GDSII export functions
to_gds_file
,to_gds
,to_gdspy
, andto_gdstk
toSimulation
,Structure
, andGeometry
.verbose
argument toestimate_cost
andreal_cost
functions such that the cost is logged ifverbose==True
(default). Additional helpful messages may also be logged.Support for space-time modulation of permittivity and electric conductivity via
ModulationSpec
class. The modulation function must be separable in space and time. Modulations with user-supplied distributions in space and harmonic modulation in time are supported.Geometry.intersections_tilted_plane
calculates intersections with any plane, not only axis-aligned ones.Transformed
class to support geometry transformations.Methods
Geometry.translated
,Geometry.scaled
, andGeometry.rotated
can be used to create transformed copies of any geometry.Time zone in webAPI logging output.
Class
Scene
consisting of a background medium and structures for easier drafting and visualization of simulation setups as well as transferring such information between different simulations.Solver for thermal simulation (see
HeatSimulation
and related classes).Specification of material thermal properties in medium classes through an optional field
.heat_spec
.
Changed#
Credit cost for remote mode solver has been modified to be defined in advance based on the mode solver details. Previously, the cost was based on elapsed runtime. On average, there should be little difference in the cost.
Mode solves that are part of an FDTD simulation (i.e. for mode sources and monitors) are now charged at the same flex credit cost as a corresponding standalone mode solver call.
Any
FreqMonitor.freqs
orSource.source_time.freq0
smaller than1e5
now raise an error as this must be incorrect setup that is outside the Tidy3D intended range (note default frequency isHz
).When using complex fields (e.g. with Bloch boundaries), FluxTimeMonitor and frequency-domain fields (including derived quantities like flux) now only use the real part of the time-domain electric field.
Indent for the json string of Tidy3D models has been changed to
None
when used internally; kept asindent=4
for writing tojson
andyaml
files.API for specifying one or more nonlinear models via
NonlinearSpec.models
.freqs
anddirection
are optional inModeSolver
methods converting to monitor and source, respectively. If not supplied, uses the values from theModeSolver
instance calling the method.Removed spurious
-1
factor in field amplitudes injected by field sources in some cases. The injectedE
-field should now exactly match the analytic, mode, or custom fields that the source is expected to inject, both in the forward and in the backward direction.Restriction on the maximum memory that a monitor would need internally during the solver run, even if the final monitor data is smaller.
Restriction on the maximum size of mode solver data produced by a
ModeSolver
server call.Updated versions of
boto3
,requests
, andclick
.python 3.7 no longer tested nor supported.
Removed warning that monitors now have
colocate=True
by default.If
PML
or any absorbing boundary condition is used along a direction where theSimulation
size is zero, an error will be raised, rather than just a warning.Remove warning that monitors now have
colocate=True
by default.Internal refactor of Web API functionality.
Geometry.from_gds
doesn’t create unnecessary groups of single elements.
Fixed#
Fixed energy leakage in TFSF when using complex fields.
Fixed the duplication of log messages in Jupyter when
set_logging_file
is used.If input to circular filters in adjoint have size smaller than the diameter, instead of erroring, warn user and truncate the filter kernel accordingly.
When writing the json string of a model to an
hdf5
file, the string is split into chunks if it has more than a set (very large) number of characters. This fixes potential error if the string size is more than 4GB.Proper equality checking between
Tidy3dBaseModel
instances, which takesDataArray
values and coords into account and handlesnp.ndarray
types.Correctly set the contour length scale when exporting 2D (or 1D) structures with custom medium to GDSII.
Improved error handling if file can not be downloaded from server.
Fix for detection of file extensions for file names with dots.
Restrict to
matplotlib
>= 3.5, avoiding bug in plottingCustomMedium
.Fixes
ComponentModeler
batch file being different in different sessions by use of deterministic hash function for computing batch filename.Can pass
kwargs
toComponentModeler.plot_sim()
to use inSimulation.plot()
.Ensure that mode solver fields are returned in single precision if
ModeSolver.ModeSpec.precision == "single"
.If there are no adjoint sources for a simulation involved in an objective function, make a mock source with zero amplitude and warn user.
2.4.3 - 2023-10-16#
Added#
Geometry.zero_dims
method that usesGeometry.bounds
and speeds up the validator for zero-sized geometries.
Changed#
Limited number of distinct sources to 1000. In cases where a complicated spatial dependence of the source is desired, a
CustomFieldSource
or aCustomCurrentSource
can be used instead of multiple distinct sources.
Fixed#
Properly handle
.freqs
inoutput_monitors
of adjoint plugin.Simulation updater for
.hdf5
files with custom data.Fix to solver geometry parsing in some edge cases of slanted polyslab and STL geometries that could lead to an error or divergence.
Fix to errors in some edge cases of a TFSF source setup.
2.4.2 - 2023-9-28#
Added#
Warnings for too many frequencies in monitors; too many modes requested in a
ModeSpec
; too many number of grid points in a mode monitor or mode source.
Changed#
Time domain monitors warn about data usage if all defaults used in time sampler specs.
Fixed#
Faster sorting of modes in
ModeSolverData.overlap_sort
by avoiding excessive data copying.Ensure same
Grid
is generated in forward and adjoint simulations by settingGridSpec.wavelength
manually in adjoint.Properly handling of
JaxBox
derivatives both for multi-cell and single cell thickness.Properly handle
JaxSimulation.monitors
with.freqs
asnp.ndarray
in adjoint plugin.Properly handle
JaxDataArray.sel()
with single coordinates and symmetry expansion.Properly handle
JaxDataArray * xr.DataArray
broadcasting.Stricter validation of
JaxDataArray
coordinates and values shape.
2.4.1 - 2023-9-20#
Added#
ModeSolverData.pol_fraction
andModeSolverData.pol_fraction_waveguide
properties to compute polarization fraction of modes using two different definitions.ModeSolverData.to_dataframe()
andModeSolverData.modes_info
for a convenient summary of various modal properties of the computed modes.Loss upper bound estimation in
PoleResidue
material model.Command line tool
tidy3d convert
for conversion from.lsf
project files into equivalent python scripts implementing the project in Tidy3D. Usage:tidy3d convert example.lsf tidy3d_script.py
.
Changed#
Output task URL before and after simulation run and make URLs blue underline formatting.
Support to load and save compressed HDF5 files (
.hdf5.gz
) directly fromTidy3dBaseModel
.Line numbers no longer printed in webapi log output.
Empty list returned if the folder cannot be queried in
web.get_tasks()
.
Fixed#
Filtering based on
ModeSpec.filter_pol
now uses the user-exposedModeSolverData.pol_fraction
property. This also fixes the previous internal handling which was not taking the nonuniform grid, as well as and the propagation axis direction for modes in angled waveguides. In practice, the results should be similar in most cases.Bug with truly anisotropic
JaxCustomMedium
in adjoint plugin.Bug in adjoint plugin when
JaxBox
is less than 1 grid cell thick.Bug in
adjoint
plugin whereJaxSimulation.structures
did not accept structures containingtd.PolySlab
.
2.4.0 - 2023-9-11#
Added#
Configuration option
config.log_suppression
can be used to control the suppression of log messages.web.abort()
andJob.abort()
methods allowing user to abort running tasks without deleting them. If a task is aborted, it cannot be restarted later, a new one needs to be created and submitted.FastDispersionFitter
for fast fitting of material dispersion data.Simulation.monitors_data_size
property mapping monitor name to its data size in bytes.Source with arbitrary user-specified time dependence through
CustomSourceTime
.Interface for specifying material heat and charge perturbation models. Specifically, non-dispersive and dispersive mediums with heat and/or charge perturbation models can be defined through classes
PerturbationMedium
andPerturbationPoleResidue
, where perturbations to each parameter is specified using classParameterPerturbation
. A convenience functionSimulation.perturbed_mediums_copy
is added to classSimulation
which applies heat and/or charge fields to mediums containing perturbation models.Added
hlim
andvlim
kwargs toSimulation.plot()
andSimulation.plot_eps()
for setting horizontal and vertical plot limits.Added support for chi3 nonlinearity via
NonlinearSusceptibility
class.Spatial downsampling allowed in
PermittivityMonitor
through theinterval_space
argument.ClipOperation
geometry type allows the construction of complex geometries through boolean operations.Operations on geometry (
+
,|
,*
,&
,-
,^
) will create the appropriateClipOperation
orGeometryGroup
.Geometry.from_shapely
to extrude shapely primitives into Tidy3D geometry.Geometry.from_gds
to extrude GDS cells into geometry groups with support for holes.components.geometry.utils.traverse_geometry
used internally to traverse geometry trees.components.geometry.utils.flatten_groups
used internally to validate large geometry trees.
Changed#
Add
width
andheight
options toSimulation.plot_3d()
.sim_with_source()
,sim_with_monitor()
, andsim_with_mode_solver_monitor()
methods allowing theModeSolver
to create a copy of itsSimulation
with an addedModeSource
,ModeMonitor
, orModeSolverMonitor
, respectively.nyquist_step
also taking the frequency range of frequency-domain monitors into account.Added option to allow DC component in
GaussianPulse
spectrum, by settingremove_dc_component=False
inGaussianPulse
.Jax installation from
pip install "tidy3d[jax]"
handled same way on windows as other OS if python >= 3.9.colocate
introduced as an argument toModeSolver
and a Field inModeSolverMonitor
, set to True by default.FieldTimeMonitor
-s andFieldMonitor
-s that havecolocate=True
return fields colocated to the grid boundaries rather than centers. This matches better user expectations for example when the simulation has a symmetry (explicitly defined, or implicit) w.r.t. a given axis. When colocating to centers, fields would bedl / 2
away from that symmetry plane, and components that are expected to go to zero do not (of course, they still do if interpolated to the symmetry plane). Another convenient use case is that it is easier to place a 2D monitor exactly on a grid boundary in the automatically generated grid, by simply passing an override structure with the monitor geometry.In these monitors,
colocate
is now set toTrue
by default. This is to avoid a lot of potential confusion coming from returning non-colocated fields by default, when colocated fields need to be used when computing quantities that depend on more than one field component, like flux or field intensity.Field colocation for computations like flux, Poynting, and modal overlap also happen to cell boundaries rather than centers. The effect on final results should be close to imperceptible as verified by a large number of backend tests and our online examples. Any difference can be at most on the scale of the difference that can be observed when slightly modifying the grid resolution.
GeometryGroup
accepts otherGeometryGroup
instances as group elements.FDTD and mode solver tasks always upload
hdf5.gz
file instead ofhdf5
orjson
.web.download_json()
will downloadsimulation.hdf5.gz
and unzip it, then load the json from the hdf5 file.SimulationTask.get_simulation_hdf5()
will download simulation.hdf5.gz and unzip it to hdf5 file.The width of Tidy3D logging output is changed to 80 characters.
Upgrades to
pydantic==2.*
withpydantic.v1
imports.Uses
ruff
for linting instead ofpylint
.Added lower bound validator to
freqs
in mode solver.Added lower bound validator to
group_index_step
inModeSpec
.ComponentModeler.freqs
now aFreqArray
, so it can be initialized from numpy, list or tuple.
Fixed#
Handles
TIDY3D_ENV
properly when set toprod
.Redundant phase compensation for shifted source in smatrix plugin.
Bug in angled mode solver with negative
angle_theta
.Properly include
JaxSimulation.input_structures
inJaxSimulationData.plot_field()
.Numerically stable sigmoid function in radius of curvature constraint.
Spatial monitor downsampling when the monitor is crossing a symmetry plane or Bloch boundary conditions.
Cast
JaxDataArray.__abs__
output tojnp.array
, reducing conversions needed in objective functions.Correct color and zorder for line segments when plotting 2D geometries.
Bug in
Simulation.eps_bounds
that was always setting the lower bound to 1.Extended lower limit of frequency range for
Graphene
to zero.Improved warnings for
Medium2D
.Improved mode solver handling of 1D problem to avoid singular matrix issue.
Set
colocate=False
automatically in outputFieldMonitor
objects in adjoint plugin, warning instead of erroring for backwards compatibility.Validation for
ModeSpec.group_index_step
working incorrectly if the value was set to 1.
2.3.3 - 2023-07-28#
Added#
Changed#
Fixed#
Adjoint plugin import failures after
jax.numpy.DeviceArray
->jax.Array
in jax 0.4.14.Fixed definition of shapely box bounds in Geometry.intersections_2dbox()
2.3.2 - 2023-7-21#
Added#
Changed#
Surface integration monitor validator changed to error only if all integration surfaces are outside of the simulation domain.
Inverse design convenience utilities in
plugins.adjoint.utils
for image filtering (ConicFilter
), projection (BinaryProjector
), and radius of curvature penalization (RadiusPenalty
).
Fixed#
Properly handle sign flip in
ModeMonitor
outputs withdirection="-"
in adjoint plugin.Bug in
CustomMedium.grids
, which was giving incorrect grid boundaries at edges.Out of date endpoint in
migrate
option of webapi.
2.3.1 - 2023-7-14#
Added#
Support for differentiating with respect to
JaxMedium.conductivity
.Validating that every surface (unless excluded in
exclude_surfaces
) of a 3DSurfaceIntegrationMonitor
(flux monitor or field projection monitor) is not completely outside the simulation domain.
Changed#
Source validation happens before simulation upload and raises an error if no source is present.
Warning instead of error if structure out of simulation bounds.
Internal refactor of
ComponentModeler
to simplify logic.(Changed effective 2.3.0) Backward-direction mode amplitudes from
ModeMonitors
have a flipped sign compared to previous versions. Previously, the amplitudes were computed directly through the dot productamp = (mode, field)
, while, since 2.3.0, we useamp = (mode, field) / (mode, mode)
instead. The modes are already normalized to unit directed flux, such that(mode, mode) = 1
for forward modes, and(mode, mode) = -1
for backward modes (the dot product of a mode with itself is equal to the flux through the mode plane). Therefore, the change in theamp
formula is equivalent to a sign change for backward modes. This makes their interpretation more intuitive, since the amplitude is now1
if the recorded field and a mode match exactly. A-1
amplitude means that the fields match exactly except for api
phase shift. This interpretation is also now independent of forward/backward direction.
Fixed#
Point-like objects correctly appear as single points using
plt.scatter
.Cleaner display of
ArrayLike
in docs.ArrayLike
validation properly fails withNone
ornan
contents.Apply finite grid correction to the fields when calculating the Poynting vector from 2D monitors.
JaxCustomMedium
properly handles complex-valued permittivity.
2.3.0 - 2023-6-30#
Added#
Specification of spatial permittivity distribution of dispersive material using user-supplied data through
CustomPoleResidue
,CustomSellmeier
,CustomLorentz
,CustomDebye
, andCustomDrude
components.CustomAnisotropicMedium
where each component can take user-supplied data to define spatial permittivity distribution of non-dispersive or dispersive material.Coords.spatial_interp
to interpolate spatial data avoiding pitfalls ofxarray.interp
in directions where there is a single data point.All medium types accept
allow_gain
which isFalse
by default, but allows the medium to be active ifTrue
.Causality validation in
PoleResidue
model.Group index calculation added to mode monitors and available through
ModeData.n_group
.Support for
JaxGeometryGroup
in adjoint plugin.Support for gradients w.r.t.
FieldMonitor
data fromoutput_monitors
in adjoint plugin.estimate_cost()
method forJob
andBatch
.s3utils.get_s3_sts_token
accepts extra query parameters.plugins.mode.web
to control the server-side mode solver.Support for
JaxDataArray.interp
, allowing differentiable linear interpolation.Support for
JaxSimulationData.get_intensity()
, allowing intensity distribution to be differentiated inadjoint
plugin.Support for
JaxFieldData.flux
to compute differentiable flux value fromFieldData
.All custom medium types accept
subpixel
which isFalse
by default, but applies subpixel averaging of the permittivity on the interfaces of the structure (including exterior boundary and intersection interfaces with other structures) ifTrue
and simulation’ssubpixel
is alsoTrue
.
Changed#
Add
Medium2D
to full simulation in tests.DispersionFitter
andStableDispersionFitter
unified in a singleDispersionFitter
interface.StableDispersionFitter
deprecated, with stable fitter now being run instead throughplugins.dispersion.web.run(DispersionFitter)
.Removed validator from
CustomFieldSource
that ensured data spanned the source geometry. Now the current values are extrapolated outside of the supplied data ranges.CustomMedium
now take fieldspermittivity
andconductivity
.eps_dataset
will be deprecated in v3.0.Moved
CustomMedium._interp
toCoords.spatial_interp
to be used by custom current sources.Adjoint simulations no longer contain unused gradient permittivity monitors, reducing processing time.
Batch
prints total estimated cost ifverbose=True
.Unified config and authentication.
Remove restriction that
JaxCustomMedium
must not be a 3D pixelated array.Limit total number of input structures in adjoint plugin for performance reasons.
ModeSolver
andModeSolverMonitor
now containdirection
field that explicitly specifies the mode propagation direction (default is “+”).Added an
interpolate
option toCustomCurrentSource
andUniformCurrentSource
, which uses linear interpolation to emulate exact placement of the source along directions where the source has zero size, rather than snapping to the nearest grid location, similar to the behavior forPointDipole
. Default:True
.
Fixed#
Plotting 2D materials in
SimulationData.plot_field
and other circumstances.More segments in plotting of large cylinder and sphere cross-sections.
Proper handling of nested list of custom data components in IO, needed for custom dispersive medium coefficients.
ElectromagneticFieldData.outer_dot
now works correctly forFieldData
, not onlyModeSolverData
.Fix to the setting of the mode solver PML parameters that produces better results for modes which do not decay in the PML, and fewer spurious modes.
Fix to single-precision mode solver to do the type conversion on the final matrix only rather than at intermediate steps, which improves accuracy in some cases.
Improvements to graphene medium fit.
Schema titles in
ArrayLike
fields.Fix
web.estimate_cost
error/time-out for large simulations, it should now always work but may take some time for complex cases.A more accurate injection and decomposition of backward propagating waveguide modes in lossy and gyrotropic systems.
2.2.3 - 2023-6-15#
Added#
Changed#
Fixed#
Callback URL: “call_back_url” replaced with proper “callbackUrl”.
2.2.2 - 2023-5-25#
Added#
Changed#
Tidy3D component
.to_hdf5()
and.from_hdf5()
now accept custom encoder and decoder functions for more flexible IO.
Fixed#
JaxDataArrays
are properly handled when reading and writing to file, dramatically reducing the VJP simulation download size in server-side adjoint.A bug in a total-field scattered-field (TFSF) validator which was causing unnecessary errors when a TFSF surface intersected with 2D materials.
CI tests working with binary installation of gdstk instead of compiling from source.
2.2.1 - 2023-5-23#
Added#
Changed#
Fixed#
Downgrade
typing_extensions
to<=4.5.0
to avoid bug with pydantic for python <= 3.9.Bug in
ModeSolver
which was causing a preconditioner to be applied even when it is not needed.
2.2.0 - 2023-5-22#
Added#
Fully anisotropic medium class (
FullyAnisotropicMedium
) that allows to simulate materials with permittivity and conductivity tensors oriented arbitrary with respect to simulation grid.Adjoint processing is done server side by default, to avoid unnecessary downloading of data.
JaxPolySlab
inadjoint
plugin, which can track derivatives through its.vertices
.run_local
andrun_async_local
options intidy3d.plugins.adjoint.web
to provide way to run adjoint processing locally.web.test()
to simply test if the authentication is configured correctly and raise exception otherwise.SimulationTask.get_running_tasks()
to get a list of running tasks from the server.Retry for set number of seconds in web functions if internet connection errors.
Argument
scale
toModeSolver.plot_field
to control plot scaling.Simulation.plot_3d()
method to make 3D rendering of simulation.
Changed#
Perfect electric conductors (PECs) are now modeled as high-conductivity media in both the frontend and backend mode solvers, and their presence triggers the use of a preconditioner to improve numerical stability and robustness. Consequently, the mode solver provides more accurate eigenvectors and field distributions when PEC structures are present.
Include source amplitude in
amp_time
.Increased the maximum allowed estimated simulation data storage to 50GB. Individual monitors with projected data larger than 10GB will trigger a warning.
PolySlab.inside
now usesmatplotlib.path.contains_points
for better performance.JaxCustomMedium
accepts a maximum of 250,000 grid cells to avoid slow server-side processing.PolySlab.inside
now usesmatplotlib.path.contains_points
.JaxCustomMedium
accepts a maximum of 250,000 grid cells.Logging messages are suppressed and summarized to avoid repetitions.
Fixed#
Log messages provide the correct caller origin (file name and line number).
Medium2D
is removed from the list of allowed options forSimulation.medium
in the documentation.Symmetry works properly in
adjoint
plugin.
2.1.1 - 2023-4-25#
Added#
Changed#
adjoint
plugin now filters out adjoint sources that are below a threshold in amplitude relative to the maximum amplitude of the monitor data, reducing unnecessary processing by eliminating sources that won’t contribute to the gradient.web.run_async
usesBatch
under the hood instead ofasyncio
.
Fixed#
More helpful error messages from HTTP responses.
Bug in
_validate_no_structures_pml
, which was using wrong pml thicknesses.Broken
callback_url
in webapi.
2.1.0 - 2023-4-18#
Added#
Group index calculation added to ModeSpec.
Waveguide plugin for quickly calculating modes in dielectric waveguides.
ElectromagneticFieldData.dot_intep
to calculate mode overlap integrals between modes with different discretizations.ElectromagneticFieldData.mode_area
to calculate the effective mode area.ElectromagneticFieldData.intensity
returns the sum of the squared components of the electric field.Group index calculation added to ModeSolver.
Web interface prints clickable link to task on Tidy3D web interface.
Allow configuration through API key in python via
tidy3d.web.configure(apikey: str)
function.
Changed#
adjoint
plugin now filters out adjoint sources that are below a threshold in amplitude relative to the maximum amplitude of the monitor data, reducing unnecessary processing by eliminating sources that won’t contribute to the gradient.ArrayLike
fields usenp.ndarray
internally instead ofTidyNDArray
subclass. Tidy3D objects are no longer hashable, instead, hash theobj.json()
string.
Fixed#
web.Batch
monitoring is more robust, will not raise exception if a job errors or diverges. In this case, the progressbar text will render in red.More robust handling for 2D structure validator.
2.0.3 - 2023-4-11#
Added#
Changed#
Times logged in
tidy3d.log
during solver run now split intoSolver time
(time-stepping only),Field projection time
(after the time stepping if any field projection monitors present) andData write time
(when the raw data is packaged to disk). Previously,Solver time
used to include theField projection time
and notData write time
.
Fixed#
Port name duplication in smatrix plugin for multimode ports.
Web functions create the leading directories for the supplied filename if they don’t exist.
Some docstring examples that were giving warnings.
web.monitor()
only prints message when condition met.PML boxes have non-zero extent along any dimensions where the simulation has 0 size, to fix plotting issues for 2D simulations.
Improved PEC handling around curved interfaces and structure intersections. Old handling accessible with
subpixel=False
(previously, it was independent of the subpixel setting).Fix to field projections sometimes containing
NaN
values.
2.0.2 - 2023-4-3#
Added#
Changed#
Fixed#
Bug in web interface when
Simulation
upload was not putting quotes aroundtd.inf
values.
2.0.1 - 2023-3-31#
Added#
Changed#
Default Tidy3D logging level is now set to
'WARNING'
.Tidy3D is no longer pip installable from
tidy3d-beta
on PyPI.Plugins must be imported from their respective directories, eg.
from tidy3d.plugins.mode import ModeSolver
.Removed
Geometry.intersections()
.Log level only accepts upper case strings.
PolySlab
reference_plane
is"middle"
by default.Boundary conditions are now
PML()
by default.PointDipole
sources now have a continuous dependence on the source position, as opposed to snapping to Yee grid locations. Behavior is controlled by theinterpolate
argument, set toTrue
by default.smatrix
plugin accepts list of frequencies and returns data as anxarray.DataArray
instead of a nesteddict
.importlib-metadata
version set to>= 6.0.0
.
Fixed#
Helpful error message if user has insufficient credits.
1.10.0 - 2023-3-28#
Added#
TriangleMesh
class for modeling geometries specified by triangle surface meshes, with support for STL file import.Total-field scattered-field (TFSF) source which allows angled plane waves to be injected into a finite region of space (the total-field region), such that only scattered fields exist outside this region (scattered-field region).
Medium2D
class for surface conductivity model of a 2D material.Entries in
material_library
for graphene and some common TMDs.Ability to create a 2D representation of a thin 3D material.
SimulationData.plot_field
accepts new field components and values, including the Poynting vector.SimulationData.get_poynting_vector
for calculating the 3D Poynting vector at the Yee cell centers.Post-init validation of Tidy3D components.
Validate post-Simulation init to error if any structures have bounds that terminate inside of the PML.
Validate
slab_bounds
forPolySlab
.
Changed#
Tidy3D account authentication done solely through API key. Migration option offered for users with old username / password authentication.
export_matlib_to_file
inmaterial_library
exports material’s full name in addition to abbreviation.Simpler progress bars for
run_async
.Medium property
n_cfl
added to adjust time step size according to CFL condition.In the mode solver plugin, regular methods in
solver.py
transformed into classmethods.ArrayLike
types are stored internally asnp.ndarray
and written to json as lists.constrained_array()
provides way to validateArrayLike
values based onndim
anddtype
.Pip installing tidy3d automatically creates
~/.tidy3d
directory in home directory.Percentage done and field decay determined through http request.
SourceTime
plotting methods.plot()
and.plot_spectrum()
accept aval
kwarg, which selects which part of the data ('real'
,'imag'
, or'abs'
) to plot, rather than plotting all at once.
Fixed#
Bug in remote file transfer when client environment has no correct certificate authority pem file install locally.
Tidy3D exceptions inherit from
ValueError
so they are handled properly by pydantic.Two unstable materials in
material_library
:Cu_JohnsonChristy1972
andNi_JohnsonChristy1972
.TiOx_HoribStable
added for improved stability.Bug in infinite long cylinder when the
reference_plane
is not at the bottom or the cylinder is slanted.
1.9.3 - 2023-3-08#
Fixed#
Allow new
tidy3d.config.logging_level
to accept lower case for backwards compatibility.
1.9.2 - 2023-3-08#
Added#
set_logging_console
allows redirection of console messages to stderr.
Changed#
Use custom logger to avoid changing global logging state when importing tidy3d.
Separate logging configuration from custom exception definitions.
1.9.1 - 2023-3-06#
Fixed#
Avoiding shapely warning in some cases when checking intersection with an empty shape.
Medium.eps_model
error when supplied a list of frequencies rather than a numpy array.Set install requirement
rich<12.6.0
to fix double output in webapi functions.
1.9.0 - 2023-3-01#
Added#
Specification of relative permittivity distribution using raw, user-supplied data through a
CustomMedium
component.Automatic differentiation through
Tidy3D
simulations usingjax
throughtidy3d.plugins.adjoint
.New Drude model variants for Gold and Silver in the
material_library
.Plugin
ComplexPolySlab
for supporting complex polyslabs containing self-intersecting polygons during extrusion.Asynchronous running of multiple simulations concurrently using
web.run_async
.Jax-compatible
run_async
in theadjoint
plugin for efficiently running multi-simulation objectives concurrently and differentiating result.Warning in
Simulation.epsilon
if many grid cells and structures provided and slow run time expected as a result.verbose
option intidy3d.web
functions and containers. IfFalse
, there will be no non-essential output when running simulations over web api.Warning if PML or absorbing boundaries are used along a simulation dimension with zero size.
Changed#
Saving and loading of
.hdf5
files is made orders of magnitude faster due to an internal refactor.PolySlab.from_gds
supportsgds_cell
from bothgdspy
andgdstk
, both packages are made optional requirements.Adjoint plugin
JaxCustomMedium
is made faster and can handle several thousand pixels without significant overhead.Jax is made an optional requirement. The adjoint plugin supports jax versions 0.3 and 0.4 for windows and non-windows users, respectively.
Issue a deprecation warning that
Geometry.intersections
will be renamed toGeometry.intersections_plane
in 2.0.Limit some warnings to only show for the first structure for which they are encountered.
Billed flex unit no longer shown at the end of
web.run
as it may take a few seconds until it is available. Instead, added aweb.real_cost(task_id)
function to get the cost after a task run.Refactored
tidy3d.web
for more robustness and test coverage.
Fixed#
Progressbars always set to 100% when webapi functions are finished.
Faster handling of
Geometry.intersects
andGeometry.inside
by taking into account geometry bounds.Numpy divide by zero warning in mode solver fixed by initializing jacobians as real instead of complex.
Bug in validators for 2D objects being in homogeneous media which were looking at the infinite plane in which the objects lie. This can also significantly speed up some validators in the case of many structures.
Sources and monitors with bend radii are displayed with curved arrows.
1.8.4 - 2023-2-13#
Fixed#
Error importing
Axes
type with most recentmatplotlib
release (3.7).
1.8.3 - 2023-1-26#
Fixed#
Bug in
Simulation.epsilon
withcoord_key="centers"
in which structures were not rendered.Missing
@functools.wrap
inensure_freq_in_range
decorator frommedium.py
causing incorrect docstrings.
1.8.2 - 2023-1-12#
Added#
Warning if users install via
tidy3d-beta
on pip, from now on, best to usetidy3d
directly.Support for dispersive media in
AnisotropicMedium
Changed#
Support shapely version >=2.0 for all python versions.
Internally refactor
Simulation.epsilon
and moveeps_diagonal
toStructure
in preparation for future changes.Readme displays updated instructions for installing tidy3d (remove beta version mention).
Fixed#
Field decay warning in mode solver when symmetry present.
Formatting bug in Tidy3d custom exceptions.
Removed#
1.8.1 - 2022-12-30#
Added#
Environment variable
TIDY3D_SSL_VERIFY
to optionally disable SSL authentication (default isTrue
).Billed FlexUnit cost displayed at the end of
web.monitor
.
Fixed#
Bug on Windows systems with submitting
CustomFieldSource
data to the server.Fix to
FieldData.symmetry_expanded_copy
for monitors withcolocate=True
.
Changed#
The
Simulation
version updater is called every time aSimulation
object is loaded, not justfrom_file
.Boundary specifications that rely on the default
Periodic
boundary now print a deprecation warning, as the default boundaries will change toPML
in Tidy3D 2.0.
1.8.0 - 2022-12-14#
Added#
CustomFieldSource
that can inject arbitrary source fields.ElectromagneticFieldData.flux
property for data corresponding to 2D monitors, andElectromagneticFieldData.dot
method for computing the overlap integral over two sets of frequency-domain field data.Data corresponding to 2D
FieldMonitor
andFieldTimeMonitor
, as well as toModeSolverMonitor
, now also storesgrid_correction
data related to the finite grid along the normal direction. This needs to be taken into account to avoid e.g. numerical oscillations of the flux with the exact position of the monitor that is due to the interpolation from the grid cell boundaries. These corrections are automatically applied when using theflux
anddot
methods.Resonance finding plugin for estimating resonance frequency and Q-factor of multiple resonances from time-domain data. Accessed through
tidy3d.plugins.ResonanceFinder
.New
.updated_copy(**kwargs)
method to all tidy3d objects to add a more convenient shortcut to copying an instance with updated fields, i.e.med.copy(update=dict(permittivity=3.0))
becomesmed.updated_copy(permittivity=3.0)
.Test support for python 3.11.
sidewall_angle
option forCylinder
that allows aCylinder
to be tuned into a conical frustum or a cone.reference_plane
forPolySlab
that provides options to define the vertices at the bottom, middle, or top of thePolySlab
.Automesh generation:
MeshOverrideStructure
that allows for a direct grid size specification in override structures, anddl_min
that bounds the minimal grid size.More material models to the material database such as gold from Olman2012.
In
AdvancedFitterParam
forStableDispersionFitter
,random_seed
option to set the random seed, andbound_f_lower
to set the lower bound of pole frequency.Introduced the option to project fields at near, intermediate, and far distances using an exact Green’s function formalism which does not make far-field approximations. This can be enabled in any
AbstractFieldProjectionMonitor
by settingfar_field_approx=False
. A tutorial notebook as a comprehensive reference for field projections was added to the documentation.Tracking of modes in
ModeSolverData
based on overlap values, controlled throughModeSpec.track_freq
.Native broadband support for
GassuainBeam
AstigmaticGaussianBeam
, andModeSource
through thenum_freqs
argument.Apodization option for frequency-domain monitors to ignore temporal data in the beginning and/or end of a simulation
Changed#
Minimum flex unit charge reduced from
0.1
to0.025
.Default Courant factor was changed from
0.9
to0.99
.A point dipole source placed on a symmetry plane now always has twice the amplitude of the same source in a simulation without the symmetry plane, as expected by continuity with the case when the dipole is slightly off the symmetry plane, in which case there are effectively two dipoles, the original one and its mirror image. Previously, the amplitude was only doubled for dipoles polarized normal to the plane, because of Yee grid specifics.
FluxMonitor
andFluxTimeMonitor
no longer snap fields to centers, but instead provide continuous interpolation of the flux over the exact geometry of the monitor.Major refactor to internal handling of data structures, including pure
Dataset
components that do not depend on otherTidy3D
components and may therefore be used to define custom data inTidy3D
models.Speed and memory usage improvement when writing and reading Tidy3d models to and from
.hdf5
files.Writing
Tidy3D
models containing custom data to.json
file will log a warning and exclude the raw data from the file for performance reasons.Material database reorganization and fixing a few references to the dispersion data.
The name
Near2Far
has been replaced withFieldProjection
. For example,Near2FarAngleMonitor
is nowFieldProjectionAngleMonitor
.The API for far field projections has been simplified and several methods have now become properties. For example, the radar cross section is now accessed as
.radar_cross_section
, not.radar_cross_section()
.Added a method
renormalize_fields
toAbstractFieldProjectionData
to re-project far fields to different projection distances.The API for
DiffractionData
was refactored to unify it with the API forAbstractFieldProjectionData
.The user no longer needs to supply
orders_x
andorders_y
when creating aDiffractionMonitor
; all allowed orders are automatically generated and returned in the resultingDiffractionData
.The user no longer needs to supply a
medium
when creating aDiffractionMonitor
or anyAbstractFieldProjectionMonitor
; the medium through which fields are to be projected is now determined automatically based on the medium in which the monitor is placed.The following attributes of
AbstractFieldProjectionMonitor
are now properties rather than methods:fields_spherical
,fields_cartesian
,power
,radar_cross_section
.
Fixed#
Some issues in
DiffractionMonitor
that is notz
-normal that could lead to solver errors or wrong results.Bug leading to solver error when
Absorber
boundaries withnum_layers = 0
are used.Bug leading to solver error when a
FieldMonitor
crosses aBlochBoundary
and not all field components are recorded.When running a
Batch
,path_dir
is created if not existing.Ignore shapely
STRtree
deprecation warning.Ignore x axis when plotting 1D
Simulation
cross sections to avoid plot irregularities.Local web api tests.
Use Tidy3D logger for some warnings that used to use default python logging.
Changed#
Replaced
gdspy
dependency withgdstk
.
1.7.1 - 2022-10-10#
Added#
medium
field inDiffractionMonitor
for decomposition of fields that are not in vacuum.
Fixed#
Bug in meshing an empty simulation with zero size along one dimension.
Bug causing error in the solver when a
PermittivityMonitor
is present in the list of monitors and is not at the end of the list.
1.7.0 - 2022-10-03#
Added#
DiffractionMonitor
to compute the power amplitude distribution in all diffraction orders in simulations of periodic structures.PolySlab
can be oriented alongx
ory
, not justz
.
Removed#
Loading components without validation no longer supported as it is too unpredictable.
Webplots plugin was removed as it was cumbersome to maintain and no longer used in web UI.
1.6.3 - 2022-9-13#
Added#
Type field for
DataArray
subclasses written tohdf5
.
Fixed#
Docstring for
FluxMonitor
andFluxTimeMonitor
.
Removed#
Explicit error message about
grid_size
deprecation.
1.6.2 - 2022-9-6#
Added#
Support for
Near2Far
monitors in the presence of simulation symmetries.
Fixed#
Bug in 3D
Near2Far
monitors where surfaces defined inexclude_surfaces
will no actually be excluded.Bug in getting angles from
k
-space values inNear2FarKSpaceMonitor
.Bug in
SimulationData.plot_field
when getting the position along the normal axis for a 2D plot.
1.6.1 - 2022-8-31#
Fixed#
Bug in new simulation upload on Windows machines.
1.6.0 - 2022-8-29#
Added#
New classes of near-to-far monitors for server-side computation of the near field to far field projection.
Option to exclude
DataArray
Fields from aTidy3dBaseModel
json.Option to save/load all models to/from
hdf5
format.Option to load base models without validation.
Support negative sidewall angle for slanted
PolySlab
-s.Option to specify only a subset of the S-matrix to compute in the S-matrix plugin, as well as to provide mapping between elements (due to symmetries).
More Lorentz-Drude material models to the material database.
Fixed#
Raise a more meaningful error if login failed after
MAX_ATTEMPTS
.Environment login credentials set to
""
are now ignored and credentials stored to file are still looked for.Improved subpixel coefficients computation around sharp edges, corners, and three-structure intersections.
Changed#
Major refactor of the way data structures are used internally.
ModeFieldMonitor
->ModeSolerMonitor
with associatedModeSolverData
.ModeSolverData
is now also stored internally inModeSolver
, and theplot_field
method can be called directly fromModeSolver
instead ofModeSolverData
.Field data for monitors that have a zero size along a given dimension is now interpolated to the exact
monitor.center
along that dimension.Removed
nlopt
from requirements, user-side material fitting now usesscipy
.New Field
normalize_index
inSimulation
- used to be input parameter when loading simulation data. A givenSimulationData
can still be renormalized to a different source later on using the newSimulationData.renormalize
.FluxMonitor
andFluxTimeMonitor
-s can now have a 3D box geometry, in which case the flux going out of all box surfaces is computed (optionally, some surfaces can be excluded).Frequency-domain monitors require a non-empty list of frequencies.
Reduced the minimum flex unit cost to run a simulation to
0.1
.Reduced the premium cost for dispersive materials in typical cases.
Added a cost for monitors that should be negligible in typical cases but affects large monitors that significantly slow down the simulation.
1.5.0 - 2022-7-21#
Fixed#
Bug in computing the
bounds
ofGeometryGroup
.Bug in auto-mesh generation.
Added#
Ability to compute field projections server-side.
Changed#
All Tidy3D components apart from data structures are now fully immutable.
Stopped support for python 3.6, improved support for python 3.10.
Web material fitter for lossless input data (no
k
data provided) will now return a lossless medium.sort_by
changed tofilter_pol
inModeSpec
.center
no longer a field of allGeometry
components, instead only present when needed, removed inPolySlab
andGeometryGroup
.Planar
geometries no longer have a mandatorylength
field, but havecenter_axis
andlengt_axis
properties for the center and length along the extrusion axis.PolySlab
now defined exclusively throughslab_bounds
, whileCylinder
throughcenter
andlength
.In mode solver, allow precision to switch between double and single precision.
Near-to-far transformation tool is no longer a plugin, but is now part of Tidy3D’s new core data structures
1.4.1 - 2022-6-13#
Fixed#
Bug in plotting polarization of a normal incidence source for some
angle_phi
.Bloch vector values required to be real rather than complex.
Web security mitigation.
1.4.0 - 2022-6-3#
Fixed#
Bug in plotting when alpha is turned off in permittivity overlay.
Bug in plotting polarization of an angled incidence source (S,P -> P,S).
Throw warning if user tries to download data instances in
yaml
orjson
format.Arrow length plotting issues for infinite sources.
Issues with nonuniform mesh not extending exactly to simulation boundaries.
Added#
Bloch periodic boundary conditions, enabling modeling of angled plane wave.
GeometryGroup
object to associate severalGeometry
instances in a singleStructure
leading to improved performance for many objects.Ability to uniquely specify boundary conditions on all 6
Simulation
boundaries.Options in field monitors for spatial downsampling and evaluation at Yee grid centers.
BatchData.load()
can load the data for a batch directly from a directory.Utility for updating
Simulation
objects from old versions ofTidy3d
to current version.Explicit
web.
functions for downloading onlysimulation.json
andtidy3d.log
files.
Changed#
Batch
objects automatically download their json file upondownload
andload
.Uses
shapely
instead ofgdspy
to merge polygons from a gds cell.ComponentModeler
(S matrix tool) stores theBatch
rather than theBatchData
.Custom caching of properties to speed up subsequent calculations.
Tidy3D configuration now done through setting attributes of
tidy3d.config
object.
1.3.3 - 2022-5-18#
Fixed#
Bug in
Cylinder.inside
whenaxis != 2
.
Added#
AstigmaticGaussianBeam
source.
Changed#
Internal functions that may require hashing the simulation many times now use a
make_static
decorator. This pre-computes the simulation hash and stores it, and makes sure that the simulation has not changed at the beginning and end of the function execution.Speeding up initialization of
PolySlab
when there is no dilation or slant angle.Allow customizing data range that colormap covers in
plot_field
.Speeding up of the automatic grid generation using Rtree and other improvements.
Better handling of http response errors.
In
web.monitor
, the estimated cost is only displayed when available; avoid “Unable to get cost” warning.In
PolySlab.from_gds
, the selected polygons are first merged if possible, before thePolySlab
-s are made. This avoids bugs e.g. in the case of slanted walls.
1.3.2 - 2022-4-30#
Fixed#
Bug in nonuniform mesh where the simulation background medium may be taken into account if higher than other structures overriding it.
1.3.1 - 2022-4-29#
Added#
Changed#
The
copy()
method of Tidy3D components is deep by default.Maximum allowed number of distinct materials is now 65530.
Fixed#
Monitor/source opacity values also applied to associated arrows.
Auto meshing in the presence of symmetries ignores anything outside of the main symmetry quadrant.
If an interface is completely covered by another structure, it is ignored by the mesher.
1.3.0 - 2022-4-26#
Added#
New
grid_spec
Field inSimulation
that allows more flexibility in defining the mesh.GridSpec1d
class defining how the meshing along each dimension should be done, with sublcassesUniformGrid
andCustomGrid
that cover the functionality previously offered by supplying a float or a list of floats toSimulation.grid_size
. New functionality offered byAutoGrid
subclass, with the mesh automatically generated based on the minimum required steps per wavelength.New
PointDipole
source.Opacity kwargs for monitor and source in
sim.plot
.Separated
plotly
-based requirements from core requrements file, can be added with"pip install tidy3d-beta[plotly]"
.
Changed#
Simulation.grid_spec
uses the defaultGridSpec
, which hasAutoGrid(min_steps_per_wvl=10)
in each direction. To initialize aSimulation
then it is no longer needed to provide grid information, if sources are added to the simulation. Otherwise an error will be raised asking to provide a wavelength for the auto mesh.VolumeSource
is now calledUniformCurrentSource
.S-matrix module now places the monitors exactly at the port locations and offsets the source slightly for numerical reasons (more accurate).
Fixed bug in
PolySlab
visualization with sidewalls.Inheritance structure of
Source
reorganized.Better handling of only one
td.inf
inBox.from_bounds
.Added proper label to intensity plots.
Made all attributes
Field()
objects indata.py
to clean up docs.Proper handling of
Medium.eps_model
at frequency oftd.inf
andNone
.
Removed#
Simulation.grid_size
is removed in favor ofSimulation.grid_spec
.
1.2.2 - 2022-4-16#
Added#
SimulationDataApp
GUI for visualizing contents ofSimulationData
intidy3d.plugings
.SimulationPlotly
interface for generatingSimulation.plot()
figures usingplotly
instead ofmatplotlib
.New
PermittivityMonitor
andPermittivityData
to store the complex relative permittivity as used in the simulation.The maximum credit cost for a simulation can now be queried using
web.estimate_cost
. It is also displayed by default duringweb.upload
.
Changed#
Faster plotting for matplotlib and plotly.
SimulationData
normalization keeps track of source index and can be normalized when loading directly from .hdf5 file.Monitor data with symmetries now store the minimum required data to file and expands the symmetries on the fly.
Significant speedup in plotting complicated simulations without patch transparency.
When a list of
dl
is provided as agrid_size
along a given direction, the grid is placed such that the total sizenp.sum(dl)
is centered at the simulation center. Previously, a grid boundary was always placed at the simulation center.
1.2.1 - 2022-3-30#
Added#
Changed#
webapi
functions now only authenticate when needed.Credentials storing folder only created when needed.
Added maximum number of attempts in authentication.
Made plotly plotting faster.
Cached Simulation.medium and Simulation.medium_map computation.
1.2.0 - 2022-3-28#
Added#
PolySlab
geometries support dilation and angled sidewalls.Percent done monitoring of jobs running longer than 10 seconds.
Can use vectorized spherical coordinates in
tidy3d.plugins.Near2Far
.ModeSolver
returns aModeSolverData
object similar toSimulationData
, containing all the information about the modes.ModeFieldMonitor
andModeFieldData
allow the results of a mode solve run server-side to be stored.Plotting of
ModeFieldData
fields inSimulationData.plot_field
andModeSolverData.plot_field
.Ordering of modes by polarization fraction can be specified in
ModeSpec
.Angled mode sources.
Changed#
Significant speed improvement for
Near2Far
calculations.freq
no longer passed toModeSolver
upon init, instead a list offreqs
passed toModeSolver.solve
.Mode solver now returns
ModeSolverData
object containing information about the mode fields and propagation constants as data arrays over frequency and mode index.Reorganized some of the internal
Source
classes.Major improvements to
Batch
objects.Batch.run()
returns aBatchData
object that mapstask_name
toSimulationData
.Infinity stored as
str
in json outputs, conforming to json file specifications.No longer need to specify one of
x/y/z
inSimulationData.plot_field
if the monitor has a zero-sized dimension.Simulation.run_time
but must be > 0 to upload to server.
1.1.1 - 2022-3-2#
Added#
Changed#
Fixed issue where smatrix was not uploaded to pyPI.
1.1.0 - 2022-3-1#
Added#
Simulation
symmetries now fully functional.Ability to perform near-to-far transformations from multiple surface monitors oriented along the x, y or z directions using
tidy3d.plugins.Near2Far
.tidy3d.plugins.ComponentModeler
tool for scattering matrix calculations.
Changed#
Major enhancements to near field to far field transformation tool: multiple monitors supported with arbitrary configuration, user control over sampling point density.
Fixed visualization bug in symmetry.
1.0.2 - 2022-2-24#
Added#
Clarified license terms to not include scripts written using the tidy3d python API.
Simulation symmetries are now enabled but currently only affect the mode solver, if the mode plane lies on the simulation center and there’s a symmetry.
Validator that mode objects with symmetries are either entirely in the main quadrant, or lie on the symmetry axis.
Simulation.plotly()
makes a plotly figure of the cross section.Dispersion fitter can parse urls from refractiveindex.info
Clarified license terms to not include scripts written using the tidy3d python API.
Changed#
Fixed a bug in python 3.6 where polyslab vertices loaded differently from file.
1.0.1 - 2022-2-16#
Added#
Selmeier.from_dispersion()
method to quickly make a single-pole fit for lossless weakly dispersive materials.Stable dispersive material fits via webservice.
Allow to load dispersive data directly by providing URL to txt or csv file
Validates simulation based on discretized size.
Changed#
Polyslab.from_gds
returns a list ofPolySlab
objects imported from all polygons in given layer and dtype, can optionally specify single dtype.Warning about structure close to PML disabled if Absorber type.
Source dft now ignores insignificant time amplitudes for speed.
New color schemes for plots.
1.0.0 - 2022-1-31#
Added#
Stable dispersive material fits via webservice.
Changed#
Refined and updated documentation.
0.2.0 - 2022-1-29#
Added#
FieldMonitor.surface()
to split volume monitors into their surfaces.Units and annotation to data.
Faster preprocessing.
Web authentication using environment variables
TIDY3D_USER
andTIDY3D_PASS
.callback_url
in web API to put job metadata when a job is finished.Support for non uniform grid size definition.
Gaussian beam source.
Automated testing through tox and github actions.
0.1.1 - 2021-11-09#
Added#
PML parameters and padding Grid with pml pixels by @momchil-flex in #64
Documentation by @tylerflex in #63
Gds import from @tylerflex in #69
Loggin by @tylerflex in #70
Multi-pole Drude medium by @weiliangjin2021 in #73
Mode Solver: from @tylerflex in #74
Near2Far from @tylerflex in #77
Changed#
Separated docs from @tylerflex in #78
0.1.0 - 2021-10-21#
Added#
Web API implemented by converting simulations to old tidy3D
Alpha Release Changes#
22.1.1#
Solver speed improvement (gain depending on simulation + hardware details).
Bringing the speed of the non-angled mode solver back to pre-21.4.2 levels.
21.4.4#
Improvements to subpixel averaging for dispersive materials.
Enabled web login using environment variables
TIDY3D_USER
andTIDY3D_PASS
.
21.4.3#
Bugfix when running simulation with zero
run_time
.More internal logging.
Fixed unstable
'Li1993_293K'
variant ofcSi
in the material library.
21.4.2.2#
Bugfix when downloading data on Windows.
Bugfix in material fitting tool when target tolerance is not reached.
21.4.2#
New Gaussian beam source and example usage.
Modal sources and monitors in bent and in angled waveguides with tutorial.
Nyquist-limit sampling in frequency-domain monitors (much faster without loss of accuracy).
Support for Drude model of material dispersion.
Small bugfixes to some of the other dispersion models.
- PEC boundaries applied by default at the truncation of any boundary with PML, avoiding potential
issues with using periodic boundaries under the PML instead.
Source normalization no longer adding a spurious frequency-dependent phase to the fields.
Fixed bug in unpacking monitor fields with symmetries and
interpolate=False
.Lots of streamlining on the backend side.
21.4.1#
Fixed bug with zero-size monitor plotting.
Fixed bug with empty simulation run introduced in 21.4.0.
21.4.0#
A few small fixes.
21.3.1.6#
Fixed nonlinear constraint in dispersive material fitting tool.
Fixed potential issue when a monitor stores neither
'E'
nor'H'
.Fixed some backwards compatibility issues introduced in 21.3.1.5.
21.3.1.5#
Frequency monitors can now optionally store the complex permittivity at the same locations where the E-fields are recorded, at the monitor frequencies.
Frequency monitors now also have an
'interpolate'
keyword, which defaults toTrue
and reproduces the behavior of previous versions. If set toFalse
, however, the raw fields evaluated at their corresponding Yee grid locations are returned, instead of the fields interpolated to the Yee cell centers. This also affects the returned permittivity, if requested.Reorganized internal source time dependence handling, enabling more complicated functionality in the future, like custom source time.
Total field in the simulation now sampled at the time step of the peak of the source time dependence, for better estimation of the shutoff factor.
A number of bug fixes, especially in the new plotting introduced in 21.3.1.4.
21.3.1.4#
Reorganized plotting:
Speeding up structure visualizations.
- Structures now shown based on primitive definitions rather than grid discretization. This
then shows the physical structures but not what the simulation “sees”. Will add an option to display the grid lines in next version.
Bumped down matplotlib version requirement to 3.2 and python version requirement to 3.6.
Improved handling of PEC interfaces.- Reorganized and extended internal logging.
Added
tidy3d.__version__
.A number of fixes to the example notebooks and the colab integration.
21.3.1.3#
Bumping back python version requirement from 3.8 to 3.7.
21.3.1.2#
Hotfix to an internal bug in some simulation runs.
21.3.1.1#
New dispersion fitting tool for material data and accompanying tutorial.
- (
beta
) Non-uniform Cartesian meshing now supported. The grid coordinates are provided by hand to
Simulation
. Next step is implementing auto-meshing.
- (
DispersionModel
objects can now be directly used as materials.Fixed bug to
Cylinder
subpixel averaging.Small bugs fixes/added checks for some edge cases.
21.3.1.0#
Rehash of symmetries and support for mode sources and monitors with symmetries.
Anisotropic materials (diagonal epsilon tensor).
Rehashed error handling to output more runtime errors to tidy3d.log.
Job and Batch classes for better simulation handling (eventually to fully replace webapi functions).
A large number of small improvements and bug fixes.