tidy3d.ContinuousWave#
- class ContinuousWave[source]#
Bases:
PulseSource time dependence that ramps up to continuous oscillation and holds until end of simulation.
- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D` will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare serializable by callingobj.json().amplitude (NonNegativeFloat = 1.0) β Real-valued maximum amplitude of the time dependence.
phase (float = 0.0) β [units = rad]. Phase shift of the time dependence.
freq0 (PositiveFloat) β [units = Hz]. Central frequency of the pulse.
fwidth (PositiveFloat) β [units = Hz]. Standard deviation of the frequency content of the pulse.
offset (ConstrainedFloatValue = 5.0) β Time delay of the maximum value of the pulse in units of 1 / (
2pi * fwidth).
Note
Field decay will not occur, so the simulation will run for the full
run_time. Also, source normalization of frequency-domain monitors is not meaningful.Example
>>> cw = ContinuousWave(freq0=200e12, fwidth=20e12)
Attributes
Methods
amp_time(time)Complex-valued source amplitude as a function of time.
end_time()Time after which the source is effectively turned off / close to zero amplitude.
Inherited Common Usage
- end_time()[source]#
Time after which the source is effectively turned off / close to zero amplitude.
- __hash__()#
Hash method.