simpeg.electromagnetics.time_domain.sources.TriangularWaveform#
- class simpeg.electromagnetics.time_domain.sources.TriangularWaveform(start_time, off_time, peak_time, **kwargs)[source]#
- Bases: - TrapezoidWaveform- TriangularWaveform is a special case of TrapezoidWaveform where there’s no pleateau - Parameters:
 - Attributes - Window of time within which the waveform is considered on - Whether the waveform has initial fields. - Off-time - Peak 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.TriangularWaveform(start_time=1E-3, off_time=6e-3, peak_time=3e-3) >>> plt.plot(times, [waveform.eval(t) for t in times]) >>> plt.show() - ( - Source code,- png,- pdf)  
 
     
