simpeg.electromagnetics.time_domain.sources.RampOffWaveform#
- class simpeg.electromagnetics.time_domain.sources.RampOffWaveform([ramp_start, ]ramp_end)[source]#
Bases:
BaseWaveformA waveform with a linear ramp-off.
RampOffWaveformcan be called with a varying number of positional arguments:RampOffWaveform(ramp_end): Specify only the ramp end time, with an implied ramp start time of zero.RampOffWaveform(ramp_start, ramp_end): Specify both the ramp start and end times.
- Parameters:
Attributes
Window of time within which the waveform is considered on
Whether the waveform has initial fields.
Off-time
Ramp end time, when the current is off.
Ramp start time
time_nodes
Methods
eval(time)Evaluate current waveform at a given time
eval_deriv(time)Evaluate the time derivative of the linear ramp-off waveform at given times
Examples
>>> import matplotlib.pyplot as plt >>> import numpy as np >>> from simpeg.electromagnetics import time_domain as tdem
>>> times = np.linspace(0, 1e-4, 1000) >>> waveform = tdem.sources.RampOffWaveform(1e-5) >>> plt.plot(times, [waveform.eval(t) for t in times]) >>> plt.show()
(
Source code,png,pdf)