File tree Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Expand file tree Collapse file tree 4 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 9
9
ComponentModeler ,
10
10
)
11
11
from tidy3d .plugins .smatrix .component_modelers .terminal import TerminalComponentModeler
12
- from tidy3d .plugins .smatrix .data .data import ComponentModelerData , TerminalComponentModelerData
13
12
from tidy3d .plugins .smatrix .data .data_array import PortDataArray , TerminalPortDataArray
13
+ from tidy3d .plugins .smatrix .data .terminal import ComponentModelerData , TerminalComponentModelerData
14
14
from tidy3d .plugins .smatrix .ports .coaxial_lumped import CoaxialLumpedPort
15
15
from tidy3d .plugins .smatrix .ports .modal import ModalPortDataArray , Port
16
16
from tidy3d .plugins .smatrix .ports .rectangular_lumped import LumpedPort
Original file line number Diff line number Diff line change
1
+ """Tool for generating an S matrix automatically from a Tidy3d simulation and lumped port definitions."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import pydantic .v1 as pd
6
+
7
+ from tidy3d .components .base import Tidy3dBaseModel
8
+ from tidy3d .plugins .smatrix .component_modelers .modal import ComponentModeler
9
+
10
+
11
+ class ComponentModelerData (Tidy3dBaseModel ):
12
+ modeler : ComponentModeler = pd .Field (
13
+ ...,
14
+ title = "ComponentModeler" ,
15
+ description = "The original :class:`ComponentModeler` object that defines the simulation setup "
16
+ "and from which this data was generated." ,
17
+ )
Original file line number Diff line number Diff line change @@ -47,10 +47,6 @@ class MicrowaveSMatrixData(Tidy3dBaseModel):
47
47
)
48
48
49
49
50
- class ComponentModelerData (Tidy3dBaseModel ):
51
- pass
52
-
53
-
54
50
class TerminalComponentModelerData (Tidy3dBaseModel ):
55
51
"""
56
52
Data associated with a :class:`TerminalComponentModeler` simulation run.
@@ -60,7 +56,7 @@ class TerminalComponentModelerData(Tidy3dBaseModel):
60
56
and the solver log.
61
57
"""
62
58
63
- simulation : TerminalComponentModeler = pd .Field (
59
+ modeler : TerminalComponentModeler = pd .Field (
64
60
...,
65
61
title = "TerminalComponentModeler" ,
66
62
description = "The original :class:`TerminalComponentModeler` object that defines the simulation setup "
Original file line number Diff line number Diff line change 11
11
DEFAULT_DATA_DIR ,
12
12
)
13
13
from tidy3d .plugins .smatrix .component_modelers .terminal import TerminalComponentModeler
14
- from tidy3d .plugins .smatrix .data .data import (
14
+ from tidy3d .plugins .smatrix .data .data_array import PortDataArray , TerminalPortDataArray
15
+ from tidy3d .plugins .smatrix .data .terminal import (
15
16
MicrowavePortSimulationData ,
16
17
TerminalComponentModelerData ,
17
18
)
18
- from tidy3d .plugins .smatrix .data .data_array import PortDataArray , TerminalPortDataArray
19
19
from tidy3d .plugins .smatrix .ports .wave import WavePort
20
20
from tidy3d .plugins .smatrix .utils import check_port_impedance_sign , compute_F , compute_port_VI
21
21
from tidy3d .web import BatchData
You can’t perform that action at this time.
0 commit comments