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

Voltage source with series resistance (Thevenin 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
 
T reflected () noexcept
 
void incident (T a) noexcept
 
T 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 (Thevenin 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 242 of file WDF.h.

Constructor & Destructor Documentation

◆ ResistiveVoltageSource()

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

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

◆ incident()

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

Definition at line 257 of file WDF.h.

◆ portResistance()

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

Definition at line 255 of file WDF.h.

◆ prepare()

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

Definition at line 251 of file WDF.h.

◆ reflected()

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

Definition at line 256 of file WDF.h.

◆ reset()

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

Definition at line 253 of file WDF.h.

◆ setResistance()

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

Definition at line 248 of file WDF.h.

◆ setVoltage()

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

Definition at line 249 of file WDF.h.

◆ updatePorts()

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

Definition at line 252 of file WDF.h.


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