Skip to content

Commit 7ad7a12

Browse files
committed
refactor path integral names
1 parent 4e57567 commit 7ad7a12

20 files changed

+451
-451
lines changed

docs/api/microwave/ports/wave.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ If it is desired to only solve for the 2D port mode, one can use the ``to_mode_s
4848

4949
tidy3d.plugins.microwave.VoltageIntegralAxisAligned
5050
tidy3d.plugins.microwave.CurrentIntegralAxisAligned
51-
tidy3d.plugins.microwave.CustomVoltageIntegral2D
52-
tidy3d.plugins.microwave.CustomCurrentIntegral2D
51+
tidy3d.plugins.microwave.Custom2DVoltageIntegral
52+
tidy3d.plugins.microwave.Custom2DCurrentIntegral
5353
tidy3d.plugins.microwave.AxisAlignedPathIntegral
54-
tidy3d.plugins.microwave.CustomPathIntegral2D
54+
tidy3d.plugins.microwave.Custom2DPathIntegral
5555
tidy3d.plugins.microwave.ImpedanceCalculator
5656

5757
The classes above are used to define the voltage/current integration paths for impedance calculation.

docs/api/plugins/microwave.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Microwave
1515
tidy3d.plugins.microwave.AxisAlignedPathIntegral
1616
tidy3d.plugins.microwave.VoltageIntegralAxisAligned
1717
tidy3d.plugins.microwave.CurrentIntegralAxisAligned
18-
tidy3d.plugins.microwave.CustomPathIntegral2D
19-
tidy3d.plugins.microwave.CustomVoltageIntegral2D
20-
tidy3d.plugins.microwave.CustomCurrentIntegral2D
18+
tidy3d.plugins.microwave.Custom2DPathIntegral
19+
tidy3d.plugins.microwave.Custom2DVoltageIntegral
20+
tidy3d.plugins.microwave.Custom2DCurrentIntegral
2121
tidy3d.plugins.microwave.ImpedanceCalculator
2222
tidy3d.plugins.microwave.RectangularAntennaArrayCalculator
2323
tidy3d.plugins.microwave.LobeMeasurer

schemas/EMESimulation.json

Lines changed: 75 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@
17761776
"$ref": "#/definitions/CurrentIntegralAxisAlignedSpec"
17771777
},
17781778
{
1779-
"$ref": "#/definitions/CustomCurrentIntegral2DSpec"
1779+
"$ref": "#/definitions/Custom2DCurrentIntegralSpec"
17801780
}
17811781
]
17821782
},
@@ -2228,6 +2228,78 @@
22282228
],
22292229
"type": "object"
22302230
},
2231+
"Custom2DCurrentIntegralSpec": {
2232+
"additionalProperties": false,
2233+
"properties": {
2234+
"attrs": {
2235+
"default": {},
2236+
"type": "object"
2237+
},
2238+
"axis": {
2239+
"default": 2,
2240+
"enum": [
2241+
0,
2242+
1,
2243+
2
2244+
],
2245+
"type": "integer"
2246+
},
2247+
"position": {
2248+
"type": "number"
2249+
},
2250+
"type": {
2251+
"default": "Custom2DCurrentIntegralSpec",
2252+
"enum": [
2253+
"Custom2DCurrentIntegralSpec"
2254+
],
2255+
"type": "string"
2256+
},
2257+
"vertices": {
2258+
"type": "ArrayLike"
2259+
}
2260+
},
2261+
"required": [
2262+
"position",
2263+
"vertices"
2264+
],
2265+
"type": "object"
2266+
},
2267+
"Custom2DVoltageIntegralSpec": {
2268+
"additionalProperties": false,
2269+
"properties": {
2270+
"attrs": {
2271+
"default": {},
2272+
"type": "object"
2273+
},
2274+
"axis": {
2275+
"default": 2,
2276+
"enum": [
2277+
0,
2278+
1,
2279+
2
2280+
],
2281+
"type": "integer"
2282+
},
2283+
"position": {
2284+
"type": "number"
2285+
},
2286+
"type": {
2287+
"default": "Custom2DVoltageIntegralSpec",
2288+
"enum": [
2289+
"Custom2DVoltageIntegralSpec"
2290+
],
2291+
"type": "string"
2292+
},
2293+
"vertices": {
2294+
"type": "ArrayLike"
2295+
}
2296+
},
2297+
"required": [
2298+
"position",
2299+
"vertices"
2300+
],
2301+
"type": "object"
2302+
},
22312303
"CustomAnisotropicMedium": {
22322304
"additionalProperties": false,
22332305
"properties": {
@@ -2496,42 +2568,6 @@
24962568
],
24972569
"type": "object"
24982570
},
2499-
"CustomCurrentIntegral2DSpec": {
2500-
"additionalProperties": false,
2501-
"properties": {
2502-
"attrs": {
2503-
"default": {},
2504-
"type": "object"
2505-
},
2506-
"axis": {
2507-
"default": 2,
2508-
"enum": [
2509-
0,
2510-
1,
2511-
2
2512-
],
2513-
"type": "integer"
2514-
},
2515-
"position": {
2516-
"type": "number"
2517-
},
2518-
"type": {
2519-
"default": "CustomCurrentIntegral2DSpec",
2520-
"enum": [
2521-
"CustomCurrentIntegral2DSpec"
2522-
],
2523-
"type": "string"
2524-
},
2525-
"vertices": {
2526-
"type": "ArrayLike"
2527-
}
2528-
},
2529-
"required": [
2530-
"position",
2531-
"vertices"
2532-
],
2533-
"type": "object"
2534-
},
25352571
"CustomDebye": {
25362572
"additionalProperties": false,
25372573
"properties": {
@@ -3161,7 +3197,7 @@
31613197
"$ref": "#/definitions/CurrentIntegralAxisAlignedSpec"
31623198
},
31633199
{
3164-
"$ref": "#/definitions/CustomCurrentIntegral2DSpec"
3200+
"$ref": "#/definitions/Custom2DCurrentIntegralSpec"
31653201
}
31663202
]
31673203
},
@@ -3175,7 +3211,7 @@
31753211
"voltage_spec": {
31763212
"anyOf": [
31773213
{
3178-
"$ref": "#/definitions/CustomVoltageIntegral2DSpec"
3214+
"$ref": "#/definitions/Custom2DVoltageIntegralSpec"
31793215
},
31803216
{
31813217
"$ref": "#/definitions/VoltageIntegralAxisAlignedSpec"
@@ -3900,42 +3936,6 @@
39003936
],
39013937
"type": "object"
39023938
},
3903-
"CustomVoltageIntegral2DSpec": {
3904-
"additionalProperties": false,
3905-
"properties": {
3906-
"attrs": {
3907-
"default": {},
3908-
"type": "object"
3909-
},
3910-
"axis": {
3911-
"default": 2,
3912-
"enum": [
3913-
0,
3914-
1,
3915-
2
3916-
],
3917-
"type": "integer"
3918-
},
3919-
"position": {
3920-
"type": "number"
3921-
},
3922-
"type": {
3923-
"default": "CustomVoltageIntegral2DSpec",
3924-
"enum": [
3925-
"CustomVoltageIntegral2DSpec"
3926-
],
3927-
"type": "string"
3928-
},
3929-
"vertices": {
3930-
"type": "ArrayLike"
3931-
}
3932-
},
3933-
"required": [
3934-
"position",
3935-
"vertices"
3936-
],
3937-
"type": "object"
3938-
},
39393939
"Cylinder": {
39403940
"additionalProperties": false,
39413941
"properties": {

0 commit comments

Comments
 (0)