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 offloat
- time when the linear ramp_on starts and stops 
- ramp_off(2) array_like offloat
- time when of the ramp_off starts and stops 
- off_timefloat
- 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)  
 
     
 
 
