simpeg.electromagnetics.time_domain.sources.TrapezoidWaveform#
- class simpeg.electromagnetics.time_domain.sources.TrapezoidWaveform(ramp_on, ramp_off, off_time=None, **kwargs)[source]#
Bases:
BaseWaveform
A waveform that has a linear ramp-on and a linear ramp-off.
- Parameters:
- ramp_on(2) array_like
of
float
time when the linear ramp_on starts and stops
- ramp_off(2) array_like
of
float
time when of the ramp_off starts and stops
- off_time
float
time when the transmitter_current returns to zero
- ramp_on(2) array_like
Attributes
Window of time within which the waveform is considered on
Whether the waveform has initial fields.
Off-time
times over which the transmitter ramps off.
times over which the transmitter ramps on.
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-2, 1000) >>> waveform = tdem.sources.TrapezoidWaveform(ramp_on=[0.0, 2e-3], ramp_off=[4e-3, 6e-3]) >>> plt.plot(times, [waveform.eval(t) for t in times]) >>> plt.show()
(
Source code
,png
,pdf
)
Galleries and Tutorials using simpeg.electromagnetics.time_domain.sources.TrapezoidWaveform
#
EM: TDEM: Permeable Target, Inductive Source
EM: TDEM: Permeable Target, Inductive Source
TDEM: Waveforms
1D Forward Simulation with User-Defined Waveforms
1D Forward Simulation with User-Defined Waveforms
3D Forward Simulation with User-Defined Waveforms
3D Forward Simulation with User-Defined Waveforms