Models
Model classes
Section titled “Model classes”photonforge.ModelAbstract model class to calculate a component’s S matrix.photonforge.AnalyticDirectionalCouplerModelAnalytic model for a 4-port directional coupler.photonforge.AnalyticMZIModelAnalytic model for a 4-port Mach-Zehnder interferometer.photonforge.AnalyticWaveguideModelAnalytic model for waveguides, bends, and EO modulators.photonforge.BraggGratingModelWaveguide Bragg grating from coupled-mode theory.photonforge.CircuitModelModel based on circuit-level S-parameter calculation.photonforge.CirculatorModelData model for a 3-port circulator.photonforge.CrossingModelData model for a 4-port waveguide crossing.photonforge.DataModelModel based on existing S matrix data.photonforge.DirectionalCouplerCircuitModelModel for directional couplers based on circuit decomposition.photonforge.DirectionalCouplerModelData model for a 4-port directional coupler.photonforge.DualRingModelDual ring resonator/modulator model with single or double bus.photonforge.EMEModelS matrix model based on Eigenmode Expansion calculation.photonforge.IsolatorModelData model for a 2-port isolator.photonforge.MultimodeInterferometerModelMultimode interference coupler, from the solved modes of its own cross-section.photonforge.MuxDemuxModelWavelength multiplexer/demultiplexer (WDM).photonforge.PolarizationBeamSplitterModelData model for a 3-port polarization beam splitter.photonforge.PolarizationModeDispersionModelFrequency-dependent Jones matrix of a randomly birefringent fibre.photonforge.PolarizationSplitterRotatorModelData model for a polarization splitter rotator.photonforge.PowerSplitterModelData model for a 3-port power splitter.photonforge.RingModelAnalytic ring resonator/modulator model with single or double bus.photonforge.TerminationModelData model for a 1-port device.photonforge.Tidy3DModelS matrix model based on Tidy3D FDTD calculation.photonforge.TwoPortModelData model for a 2-port component.photonforge.WaveguideModelData model for straight waveguides.
Lumped Model classes
Section titled “Lumped Model classes”photonforge.LumpedModelAbstract lumped model class for computing MNA (Modified Nodal Analysis) stamps.photonforge.CapacitorTwo-terminal capacitor.photonforge.IdealTransformerIdeal transformer with turns ratio n:1.photonforge.IdealTransmissionLineLossless transmission line.photonforge.InductorTwo-terminal inductor.photonforge.ParallelRLCParallel RLC circuit between two terminals.photonforge.ResistorTwo-terminal resistor.photonforge.SeriesRLCSeries RLC circuit between two terminals.
Helper classes
Section titled “Helper classes”photonforge.MNAMatrixModified Nodal Analysis (MNA) matrix.photonforge.PoleResidueMatrixPole-residue representation of an S matrix.photonforge.SMatrixS matrix object.photonforge.Tidy3DAutogradConfigConfiguration for Tidy3D-specific autograd finite-difference behavior.photonforge.YMatrixNodal admittance matrix (Y matrix).photonforge.ZMatrixNodal impedance matrix (Z matrix).
Helper functions
Section titled “Helper functions”photonforge.abort_pending_tasksAbort all known pending Tidy3D pending tasks.photonforge.dispersion_from_beta2Convert , to PhotonForge’s D and S.photonforge.franz_keldysh_absorptionFranz-Keldysh absorption table for a bulk electro-absorber.photonforge.frequency_classificationReturn a classification for the frequencies: “optical” or “electrical”.photonforge.load_snpLoad an S matrix from a Touchstone (snp) file.photonforge.pole_residue_fitFit S matrix elements with rational functions sharing a set of poles.photonforge.register_model_classRegister a model class derived fromModel.photonforge.s_to_y_matrixConvert an S-matrix (scattering matrix) to a Y-matrix (admittance matrix).photonforge.s_to_z_matrixConvert an S-matrix (scattering matrix) to a Z-matrix (impedance matrix).photonforge.y_to_s_matrixConvert a Y-matrix (admittance matrix) to an S-matrix (scattering matrix).photonforge.y_to_z_matrixConvert a Y-matrix (admittance matrix) to a Z-matrix (impedance matrix).photonforge.z_to_s_matrixConvert a Z-matrix (impedance matrix) to an S-matrix (scattering matrix).photonforge.z_to_y_matrixConvert a Z-matrix (impedance matrix) to a Y-matrix (admittance matrix).
Caching
Section titled “Caching”photonforge.cache_s_matrixDecorator that can be used inModel.startto cache results.photonforge.cache.cache_capacitySet the runtime cache capacity.photonforge.cache.clear_cacheClear the runtime caches, but not the file cache.