Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added support for `nonlinear_spec` in `CustomMedium` and `CustomDispersiveMedium`.
- `tidy3d.plugins.design.DesignSpace.run(..., fn_post=...)` now accepts a `priority` keyword to propagate vGPU queue priority to all automatically batched simulations.
- Introduced `BroadbandPulse` for exciting simulations across a wide frequency spectrum.
- Added `interp_spec` in `ModeSpec` to allow downsampling and interpolation of waveguide modes in frequency.

### Breaking Changes
- Edge singularity correction at PEC and lossy metal edges defaults to `True`.
Expand Down
4 changes: 3 additions & 1 deletion docs/api/mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ Mode Specifications
:toctree: _autosummary/
:template: module.rst

tidy3d.ModeSpec
tidy3d.ModeSpec
tidy3d.ModeSortSpec
tidy3d.ModeInterpSpec
158 changes: 158 additions & 0 deletions schemas/EMESimulation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,30 @@
},
"type": "object"
},
"ChebSampling": {
"additionalProperties": false,
"properties": {
"attrs": {
"default": {},
"type": "object"
},
"num_points": {
"minimum": 3,
"type": "integer"
},
"type": {
"default": "ChebSampling",
"enum": [
"ChebSampling"
],
"type": "string"
}
},
"required": [
"num_points"
],
"type": "object"
},
"ClipOperation": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -3907,6 +3931,39 @@
],
"type": "object"
},
"CustomSampling": {
"additionalProperties": false,
"properties": {
"attrs": {
"default": {},
"type": "object"
},
"freqs": {
"anyOf": [
{
"items": {
"type": "number"
},
"type": "array"
},
{
"type": "ArrayLike"
}
]
},
"type": {
"default": "CustomSampling",
"enum": [
"CustomSampling"
],
"type": "string"
}
},
"required": [
"freqs"
],
"type": "object"
},
"CustomSellmeier": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -5232,6 +5289,13 @@
],
"default": false
},
"interp_spec": {
"allOf": [
{
"$ref": "#/definitions/ModeInterpSpec"
}
]
},
"num_modes": {
"default": 1,
"exclusiveMinimum": 0,
Expand Down Expand Up @@ -7967,6 +8031,13 @@
}
]
},
"interp_spec": {
"allOf": [
{
"$ref": "#/definitions/ModeInterpSpec"
}
]
},
"num_modes": {
"default": 1,
"exclusiveMinimum": 0,
Expand Down Expand Up @@ -8073,6 +8144,7 @@
"bend_radius": null,
"filter_pol": null,
"group_index_step": false,
"interp_spec": null,
"num_modes": 1,
"num_pml": [
0,
Expand Down Expand Up @@ -8133,6 +8205,60 @@
],
"type": "object"
},
"ModeInterpSpec": {
"additionalProperties": false,
"properties": {
"attrs": {
"default": {},
"type": "object"
},
"method": {
"default": "linear",
"enum": [
"cubic",
"linear",
"poly"
],
"type": "string"
},
"reduce_data": {
"default": false,
"type": "boolean"
},
"sampling_spec": {
"discriminator": {
"mapping": {
"ChebSampling": "#/definitions/ChebSampling",
"CustomSampling": "#/definitions/CustomSampling",
"UniformSampling": "#/definitions/UniformSampling"
},
"propertyName": "type"
},
"oneOf": [
{
"$ref": "#/definitions/ChebSampling"
},
{
"$ref": "#/definitions/CustomSampling"
},
{
"$ref": "#/definitions/UniformSampling"
}
]
},
"type": {
"default": "ModeInterpSpec",
"enum": [
"ModeInterpSpec"
],
"type": "string"
}
},
"required": [
"sampling_spec"
],
"type": "object"
},
"ModeSolverMonitor": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -8299,6 +8425,7 @@
"bend_radius": null,
"filter_pol": null,
"group_index_step": false,
"interp_spec": null,
"num_modes": 1,
"num_pml": [
0,
Expand Down Expand Up @@ -8515,6 +8642,13 @@
],
"default": false
},
"interp_spec": {
"allOf": [
{
"$ref": "#/definitions/ModeInterpSpec"
}
]
},
"num_modes": {
"default": 1,
"exclusiveMinimum": 0,
Expand Down Expand Up @@ -12052,6 +12186,30 @@
],
"type": "object"
},
"UniformSampling": {
"additionalProperties": false,
"properties": {
"attrs": {
"default": {},
"type": "object"
},
"num_points": {
"minimum": 2,
"type": "integer"
},
"type": {
"default": "UniformSampling",
"enum": [
"UniformSampling"
],
"type": "string"
}
},
"required": [
"num_points"
],
"type": "object"
},
"VarshniEnergyBandGap": {
"additionalProperties": false,
"properties": {
Expand Down
Loading