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:
off_timefloat

time when the transmitter current returns to zero

peak_timefloat

time when the transmitter waveform is at a peak

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)

../../../_images/SimPEG-electromagnetics-time_domain-sources-TriangularWaveform-1.png

Attributes

epsilon

Window of time within which the waveform is considered on

has_initial_fields

Whether the waveform has initial fields.

off_time

Off-time

peak_time

Peak time

ramp_off

times over which the transmitter ramps off.

ramp_on

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

Galleries and Tutorials using SimPEG.electromagnetics.time_domain.sources.TriangularWaveform#

TDEM: Waveforms

TDEM: Waveforms

1D Forward Simulation with User-Defined Waveforms

1D Forward Simulation with User-Defined Waveforms