¶
Sources¶
A collection of source objects to induce light into a simulation. The spatial profile of the sources can be either a plane, a gaussian or a mode. The temporal profile is set through the correponding attribute. All sources are implemented using the Total-Field/Scattered-Field formulation (also known as soft sources), except for the sources explicitly marked as "hard". These directly set the electric/magnetic field to a fixed value.
fdtdx.GaussianPlaneSource
¶
Bases: LinearlyPolarizedPlaneSource
Source code in src/fdtdx/objects/sources/linear_polarization.py
A source with a spatial profile of a gaussian.
fdtdx.UniformPlaneSource
¶
Bases: LinearlyPolarizedPlaneSource
Source code in src/fdtdx/objects/sources/linear_polarization.py
A source with a spatial profile of a uniform plane.
fdtdx.ModePlaneSource
¶
Bases: TFSFPlaneSource
Source code in src/fdtdx/objects/sources/mode.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
|
A source with the spatial profile of a mode. The mode is computed automatically and by default a first order mode is used. In the future, we will develop a better interface to support other modes as well.
Temporal Profiles¶
fdtdx.SingleFrequencyProfile
¶
Bases: TemporalProfile
Simple sinusoidal temporal profile at a single frequency.
Source code in src/fdtdx/objects/sources/profile.py
A temporal profile which exhibits just a single wave throughout the whole simulation time.
fdtdx.GaussianPulseProfile
¶
Bases: TemporalProfile
Gaussian pulse temporal profile with carrier wave.
Source code in src/fdtdx/objects/sources/profile.py
A temporal pulse of a gaussian envelope.