DSPark 1.8.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::wdf::DiodeRoot< T, Tree > Class Template Reference

Single Shockley diode root: i(v) = Is (e^{v/(n Vt)} - 1). More...

#include <WDF.h>

Public Member Functions

 DiodeRoot (Tree &tree, T saturationCurrent=T(2.52e-9), T idealityTimesVt=T(1.752 *0.02585)) noexcept
 
void setSaturationCurrent (T amps) noexcept
 
void setIdealityTimesVt (T volts) noexcept
 
void prepare (double sampleRate) noexcept
 
void reset () noexcept
 
void process () noexcept
 
T getVoltage () const noexcept
 Voltage across the diode.
 

Detailed Description

template<FloatType T, typename Tree>
class dspark::wdf::DiodeRoot< T, Tree >

Single Shockley diode root: i(v) = Is (e^{v/(n Vt)} - 1).

Conducts for positive v, blocks (down to -Is) for negative v.

Definition at line 510 of file WDF.h.

Constructor & Destructor Documentation

◆ DiodeRoot()

template<FloatType T, typename Tree >
dspark::wdf::DiodeRoot< T, Tree >::DiodeRoot ( Tree &  tree,
T  saturationCurrent = T(2.52e-9),
T  idealityTimesVt = T(1.752 * 0.02585) 
)
inlineexplicitnoexcept

Definition at line 513 of file WDF.h.

Member Function Documentation

◆ getVoltage()

template<FloatType T, typename Tree >
T dspark::wdf::DiodeRoot< T, Tree >::getVoltage ( ) const
inlinenoexcept

Voltage across the diode.

Definition at line 550 of file WDF.h.

◆ prepare()

template<FloatType T, typename Tree >
void dspark::wdf::DiodeRoot< T, Tree >::prepare ( double  sampleRate)
inlinenoexcept

Definition at line 520 of file WDF.h.

◆ process()

template<FloatType T, typename Tree >
void dspark::wdf::DiodeRoot< T, Tree >::process ( )
inlinenoexcept

Definition at line 529 of file WDF.h.

◆ reset()

template<FloatType T, typename Tree >
void dspark::wdf::DiodeRoot< T, Tree >::reset ( )
inlinenoexcept

Definition at line 527 of file WDF.h.

◆ setIdealityTimesVt()

template<FloatType T, typename Tree >
void dspark::wdf::DiodeRoot< T, Tree >::setIdealityTimesVt ( T  volts)
inlinenoexcept

Definition at line 518 of file WDF.h.

◆ setSaturationCurrent()

template<FloatType T, typename Tree >
void dspark::wdf::DiodeRoot< T, Tree >::setSaturationCurrent ( T  amps)
inlinenoexcept

Definition at line 517 of file WDF.h.


The documentation for this class was generated from the following file: