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

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

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

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