Skip to content

Commit

Permalink
prep for 2.5.0rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex committed Oct 30, 2023
1 parent 1e5d85e commit 1c9dd24
Show file tree
Hide file tree
Showing 5 changed files with 625 additions and 159 deletions.
21 changes: 11 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [2.5.0rc2] - 2023-10-30

### Added
- Support for multiple frequencies in `output_monitors` in `adjoint` plugin.
- GDSII export functions to `Simulation`, `Structure`, and `Geometry`.
- ``verbose`` argument to `estimate_cost` and `real_cost` functions such that the cost is logged if `verbose==True` (default). Additional helpful messages may also be logged.
- Added 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 intesections with any plane, not only axis-aligned ones.
- `Transformed` class to support for geometry transformations.
- GDSII export functions `to_gds_file`, `to_gds`, `to_gdspy`, and `to_gdstk` to `Simulation`, `Structure`, and `Geometry`.
- `verbose` argument to `estimate_cost` and `real_cost` functions such that the cost is logged if `verbose==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`, and `Geometry.rotated` can be used to create transformed copies of any geometry.

### Changed
- Update versions of `boto3`, `requests`, and `click`.
- Updated versions of `boto3`, `requests`, and `click`.
- python 3.7 no longer tested nor supported.
- Remove warning that monitors now have `colocate=True` by default.
- Removed warning that monitors now have `colocate=True` by default.
- If `PML` or any absorbing boundary condition is used along a direction where the `Simulation` size is zero, an error will be raised, rather than just a warning.

### Fixed
- If no adjoint sources for one simulation in an objective function, make a mock source with zero amplitude and warn user.
- 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.5.0rc1] - 2023-10-10

Expand Down Expand Up @@ -1003,7 +1003,8 @@ which fields are to be projected is now determined automatically based on the me
- Job and Batch classes for better simulation handling (eventually to fully replace webapi functions).
- A large number of small improvements and bug fixes.

[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc1...pre/2.5
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc2...pre/2.5
[2.5.0rc2]: https://github.com/flexcompute/tidy3d/compare/v2.5.0rc1...v2.5.0rc2
[2.5.0rc1]: https://github.com/flexcompute/tidy3d/compare/v2.4.2...v2.5.0rc1
[Unreleased]: https://github.com/flexcompute/tidy3d/compare/v2.4.3...develop
[2.4.3]: https://github.com/flexcompute/tidy3d/compare/v2.4.2...v2.4.3
Expand Down
Binary file modified tests/sims/simulation_2_5_0rc2.h5
Binary file not shown.
36 changes: 18 additions & 18 deletions tests/sims/simulation_2_5_0rc2.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
8.0,
8.0
],
"run_time": 1e-12,
"medium": {
"name": null,
"frequency_range": null,
Expand All @@ -22,11 +21,6 @@
"permittivity": 1.0,
"conductivity": 0.0
},
"symmetry": [
0,
0,
0
],
"structures": [
{
"geometry": {
Expand Down Expand Up @@ -902,8 +896,14 @@
}
}
],
"symmetry": [
0,
0,
0
],
"sources": [
{
"name": null,
"type": "UniformCurrentSource",
"center": [
0.0,
Expand All @@ -924,11 +924,11 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"interpolate": true,
"polarization": "Hx"
},
{
"name": null,
"type": "PointDipole",
"center": [
0.0,
Expand All @@ -949,11 +949,11 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"interpolate": true,
"polarization": "Ex"
},
{
"name": null,
"type": "ModeSource",
"center": [
0.0,
Expand All @@ -974,7 +974,6 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"num_freqs": 1,
"direction": "-",
"mode_spec": {
Expand All @@ -997,6 +996,7 @@
"mode_index": 0
},
{
"name": null,
"type": "PlaneWave",
"center": [
0.0,
Expand All @@ -1017,13 +1017,13 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"direction": "+",
"angle_theta": 0.0,
"angle_phi": 0.0,
"pol_angle": 0.1
},
{
"name": null,
"type": "GaussianBeam",
"center": [
0.0,
Expand All @@ -1044,7 +1044,6 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"num_freqs": 1,
"direction": "+",
"angle_theta": 0.0,
Expand All @@ -1054,6 +1053,7 @@
"waist_distance": 0.0
},
{
"name": null,
"type": "AstigmaticGaussianBeam",
"center": [
0.0,
Expand All @@ -1074,7 +1074,6 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"num_freqs": 1,
"direction": "+",
"angle_theta": 0.0,
Expand All @@ -1090,6 +1089,7 @@
]
},
{
"name": null,
"type": "CustomFieldSource",
"center": [
0.0,
Expand All @@ -1110,7 +1110,6 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"field_dataset": {
"type": "FieldDataset",
"Ex": "ScalarFieldDataArray",
Expand All @@ -1122,6 +1121,7 @@
}
},
{
"name": null,
"type": "CustomCurrentSource",
"center": [
0.0,
Expand All @@ -1142,7 +1142,6 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"interpolate": true,
"current_dataset": {
"type": "FieldDataset",
Expand All @@ -1155,6 +1154,7 @@
}
},
{
"name": null,
"type": "TFSF",
"center": [
1.0,
Expand All @@ -1175,14 +1175,14 @@
"offset": 5.0,
"remove_dc_component": true
},
"name": null,
"direction": "+",
"angle_theta": 0.5235987755982988,
"angle_phi": 0.6283185307179586,
"pol_angle": 0.0,
"injection_axis": 2
},
{
"name": null,
"type": "UniformCurrentSource",
"center": [
0.0,
Expand All @@ -1206,7 +1206,6 @@
"values": "TimeDataArray"
}
},
"name": null,
"interpolate": true,
"polarization": "Hx"
}
Expand Down Expand Up @@ -2091,9 +2090,10 @@
],
"type": "GridSpec"
},
"version": "2.5.0rc2",
"run_time": 1e-12,
"shutoff": 0.0001,
"subpixel": false,
"normalize_index": 0,
"courant": 0.8,
"version": "2.5.0rc2"
"courant": 0.8
}
2 changes: 1 addition & 1 deletion tidy3d/components/geometry/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@ class Transformed(Geometry):
)

transform: MatrixReal4x4 = pydantic.Field(
np.eye(4),
np.eye(4).tolist(),
title="Transform",
description="Transform matrix applied to the base geometry.",
)
Expand Down
Loading

0 comments on commit 1c9dd24

Please sign in to comment.