DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
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
 
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 494 of file WDF.h.

Constructor & Destructor Documentation

◆ DiodeRoot()

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

Definition at line 497 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 534 of file WDF.h.

◆ prepare()

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

Definition at line 504 of file WDF.h.

◆ process()

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

Definition at line 513 of file WDF.h.

◆ reset()

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

Definition at line 511 of file WDF.h.

◆ setIdealityTimesVt()

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

Definition at line 502 of file WDF.h.

◆ setSaturationCurrent()

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

Definition at line 501 of file WDF.h.


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