simpeg.electromagnetics.time_domain.sources.RampOffWaveform#

class simpeg.electromagnetics.time_domain.sources.RampOffWaveform([ramp_start, ]ramp_end)[source]#

Bases: BaseWaveform

A waveform with a linear ramp-off.

RampOffWaveform can be called with a varying number of positional arguments:

  • RampOffWaveform(ramp_end): Specify only the ramp end time, with an implied ramp start time of zero.

  • RampOffWaveform(ramp_start, ramp_end): Specify both the ramp start and end times.

Parameters:
ramp_startfloat, optional

Time the ramp off portion of the waveform starts. The default start value is 0.

ramp_endfloat

Time at which the ramp off ends.

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

ramp_end

Ramp end time, when the current is off.

ramp_start

Ramp start time

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-4, 1000)
>>> waveform = tdem.sources.RampOffWaveform(1e-5)
>>> plt.plot(times, [waveform.eval(t) for t in times])
>>> plt.show()

(Source code, png, pdf)

../../../_images/simpeg-electromagnetics-time_domain-sources-RampOffWaveform-1.png

Galleries and Tutorials using simpeg.electromagnetics.time_domain.sources.RampOffWaveform#

TDEM: Waveforms

TDEM: Waveforms