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

#include <rt-wdf.h>

Public Member Functions

 wdfPort (wdfTreeNode *connectedNode)
 
double getPortVoltage ()
 
double getPortCurrent ()
 

Public Attributes

double Rp
 
double Gp
 
double a
 
double b
 
std::unique_ptr< wdfTreeNodeconnectedNode
 

Detailed Description

Port class to describe a wave digital filter port.

Constructor & Destructor Documentation

§ wdfPort()

wdfPort::wdfPort ( wdfTreeNode connectedNode)

Creates a WDF port on connectedNode.

Parameters
*connectedNodeis a pointer to the node that connects to that port.

Member Function Documentation

§ getPortCurrent()

double wdfPort::getPortCurrent ( )

Calculates the port current based on wave variables a and b

Returns
port current in Ampere

§ getPortVoltage()

double wdfPort::getPortVoltage ( )

Calculates the port voltage based on wave variables a and b

Returns
port voltage in Volt

Member Data Documentation

§ a

double wdfPort::a

Incident wave (incoming wave)

§ b

double wdfPort::b

Reflected wave (outgoing wave)

§ connectedNode

std::unique_ptr<wdfTreeNode> wdfPort::connectedNode

Pointer to the node that connects to that port.

§ Gp

double wdfPort::Gp

The inverse WDF port resistance in Siemens

§ Rp

double wdfPort::Rp

The WDF port resistance in Ohm


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