Python library 1.0.x

Technique

Module to create potential waveform and time arrays.

softpotato.technique.Sweep(Eini=-0.5, Efin=0.5, sr=0.1, dE=0.01, ns=2)

Creates the potential and time arrays of a potential sweep. The arguments of this funciton are going to change soon to account for vertexes being different than the initial and final potential. At the moment, final potential refers to the second vertex.

Parameters:

Returns:

Examples:

import softpotato as sp
wf = sp.technique.Sweep(Eini=-0.5, Efin=0.5, sr=1, dE=0.01, ns=3)
sp.plotting.plot(wf.t, wf.E, xlab='$t$ / s', ylab='$E$ / V', show=1)

softpotato.technique.Step(Es=0.5, ttot=1, dt=0.01)

Creates a single potential step.

Parameters:

Returns:

Examples:

import softpotato as sp
wf = sp.technique.Step(Es=0, ttot=2, dt=0.01)
sp.plotting.plot(wf.t, wf.E, xlab='$t$ / s', ylab='$E$ / V', show=True)

softpotato.technique.Custom(wf)

Combines techniques previously created.

Parameters:

Returns:

Examples:

import softpotato as sp
wf1 = sp.technique.Step(Es=-0.5, ttot=5)
wf2 = sp.technique.Sweep(ns=1)
wf3 = sp.technique.Step(Es=0.5, ttot=5)
wf = sp.technique.Custom([wf1, wf2, wf3])
sp.plotting.plot(wf.t, wf.E, xlab='$t$ / s', ylab='$E$ / V', show=True)