DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
Loading...
Searching...
No Matches
dspark::wdf::ResistiveVoltageSource< T > Class Template Reference

Voltage source with series resistance (Thévenin leaf): b = Vs. More...

#include <WDF.h>

Public Member Functions

 ResistiveVoltageSource (T seriesResistanceOhms) noexcept
 
void setResistance (T ohms) noexcept
 
void setVoltage (T volts) noexcept
 
void prepare (double) noexcept
 
void updatePorts () noexcept
 
void reset () noexcept
 
double portResistance () const noexcept
 
reflected () noexcept
 
void incident (T a) noexcept
 
getVoltage () const noexcept
 Voltage at the source terminals (after the series resistance).
 

Detailed Description

template<FloatType T>
class dspark::wdf::ResistiveVoltageSource< T >

Voltage source with series resistance (Thévenin leaf): b = Vs.

The series resistance doubles as the port resistance, which is what makes the source usable anywhere in the tree (an ideal source can only be a root).

Definition at line 178 of file WDF.h.

Constructor & Destructor Documentation

◆ ResistiveVoltageSource()

template<FloatType T>
dspark::wdf::ResistiveVoltageSource< T >::ResistiveVoltageSource ( seriesResistanceOhms)
inlineexplicitnoexcept

Definition at line 181 of file WDF.h.

Member Function Documentation

◆ getVoltage()

template<FloatType T>
T dspark::wdf::ResistiveVoltageSource< T >::getVoltage ( ) const
inlinenoexcept

Voltage at the source terminals (after the series resistance).

Definition at line 196 of file WDF.h.

◆ incident()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::incident ( a)
inlinenoexcept

Definition at line 193 of file WDF.h.

◆ portResistance()

template<FloatType T>
double dspark::wdf::ResistiveVoltageSource< T >::portResistance ( ) const
inlinenoexcept

Definition at line 191 of file WDF.h.

◆ prepare()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::prepare ( double  )
inlinenoexcept

Definition at line 187 of file WDF.h.

◆ reflected()

template<FloatType T>
T dspark::wdf::ResistiveVoltageSource< T >::reflected ( )
inlinenoexcept

Definition at line 192 of file WDF.h.

◆ reset()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::reset ( )
inlinenoexcept

Definition at line 189 of file WDF.h.

◆ setResistance()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::setResistance ( ohms)
inlinenoexcept

Definition at line 184 of file WDF.h.

◆ setVoltage()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::setVoltage ( volts)
inlinenoexcept

Definition at line 185 of file WDF.h.

◆ updatePorts()

template<FloatType T>
void dspark::wdf::ResistiveVoltageSource< T >::updatePorts ( )
inlinenoexcept

Definition at line 188 of file WDF.h.


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