RT-WDF
0.0.1
Real-time Wave Digital Filter Framework
|
#include <rt-wdf.h>
Public Member Functions | |
wdfRootNL (int numSubtrees, std::vector< int > nlList, int solverType) | |
~wdfRootNL () | |
virtual void | processAscendingWaves (vec *ascendingWaves, vec *descendingWaves) |
virtual matData * | getRootMatrPtr () |
virtual std::string | getType () const |
void | setPortResistances (double *Rp) |
wdfRootNL::wdfRootNL | ( | int | numSubtrees, |
std::vector< int > | nlList, | ||
int | solverType | ||
) |
Multiple/Multiport Non-Linearities root implementation.
numSubtrees | specifies the number of subtrees which are connected to the root to correctly allocate memory for rootMatrixData |
nlList | is a vector defines that map to available NL models. See nlModelClass.h for all models |
solverType | sets the solver to use in this root. See nlSolverClass.h for all solvers. |
wdfRootNL::~wdfRootNL | ( | ) |
Deconstructor
|
virtual |
Function that returns a pointer to the rootMatrixData element.
The pointer is be used to populate or update the E,-F-,M-,N-Matrices of the root loop by the setRootMatrData() function of the tree.
Reimplemented from wdfRoot.
|
virtual |
Returns a String describing the type of this root.
Implements wdfRoot.
|
virtual |
Function to process a vector of ascending waves in the root and return the descending result.
Scatters the waves according to the R-type connector towards the non-linearities, solves the inner loop with a NLSolver and returns the result.
*ascendingWaves | is a pointer to a vector of waves that were collected at the upfacing ports of the subtrees, traveling into the root. |
*descendingWaves | is a pointer to a vector to store the resulting waves that leave the root afterprocessing into the subtrees |
Implements wdfRoot.
|
inherited |
Function that does nothing if not overwritten by a method in a subclass.
Acts as an interface towards the tree to do anything with the subtree's upfacing port resistances in the root. Is called during adaptation of the WDF structure.
Rp | is a vector of port resistances of all subtrees of the root. |