RT-WDF  0.0.1
Real-time Wave Digital Filter Framework
wdfIdealVSource Class Reference

#include <rt-wdf.h>

Inheritance diagram for wdfIdealVSource:

Public Member Functions

 wdfIdealVSource (double Vs)
 
virtual void calculateDownB (vec *ascendingWaves, vec *descendingWaves, size_t *portIndex)
 
void setPortResistance (double Rp)
 
virtual std::string getType () const
 
int getNumPorts ()
 

Public Attributes

double Vs
 

Protected Attributes

double Rp
 
size_t numPorts
 

Constructor & Destructor Documentation

§ wdfIdealVSource()

wdfIdealVSource::wdfIdealVSource ( double  Vs)

Unadapted, ideal voltage source class.

Creates an ideal voltage source with initial voltage Vs

Parameters
Vsinitial source voltage in Volts

Member Function Documentation

§ calculateDownB()

void wdfIdealVSource::calculateDownB ( vec *  ascendingWaves,
vec *  descendingWaves,
size_t *  portIndex 
)
virtual

Calculates the reflection of the incoming, ascending wave.

Parameters
*ascendingWavesPointer to a vector of ascending waves
*descendingWavesPointer to a vector to store descending waves
*portIndexPointer to a counter with the port index to use in the vectors of ascending and descending waves. Needs to be incremented by numPorts in the node's implementation.

Implements wdfRootNode.

§ getNumPorts()

int wdfRootNode::getNumPorts ( )
inherited

Return the number of ports of that root node.

Returns
the value of the numPorts member.

§ getType()

std::string wdfIdealVSource::getType ( ) const
virtual

Returns a String describing the type of this root node.

Returns
a String describing the type of this leaf as "Vs (ideal -> unadapted)"

Implements wdfRootNode.

§ setPortResistance()

void wdfIdealVSource::setPortResistance ( double  Rp)
virtual

Sets the nodes port resistance according to the port it is connected to.

Parameters
Rpport resistance in Ohm

Reimplemented from wdfRootNode.

Member Data Documentation

§ numPorts

size_t wdfRootNode::numPorts
protectedinherited

The number of ports on a root node element.

§ Rp

double wdfRootNode::Rp
protectedinherited

The WDF port resistance in Ohm.

§ Vs

double wdfIdealVSource::Vs

Source voltage in Volts


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