#include <rt-wdf.h>
§ wdfIdealCSource()
wdfIdealCSource::wdfIdealCSource |
( |
double |
I_in | ) |
|
Unadapted, ideal current source class.
Creates an ideal current source with initial current Is
- Parameters
-
Vs | initial source voltage in Volts |
§ calculateDownB()
void wdfIdealCSource::calculateDownB |
( |
vec * |
ascendingWaves, |
|
|
vec * |
descendingWaves, |
|
|
size_t * |
portIndex |
|
) |
| |
|
virtual |
Calculates the reflection of the incoming, ascending wave.
- Parameters
-
*ascendingWaves | Pointer to a vector of ascending waves |
*descendingWaves | Pointer to a vector to store descending waves |
*portIndex | Pointer 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 wdfIdealCSource::getType |
( |
| ) |
const |
|
virtual |
Returns a String describing the type of this root node.
- Returns
- a String describing the type of this leaf as "Is (ideal -> unadapted)"
Implements wdfRootNode.
§ setPortResistance()
void wdfIdealCSource::setPortResistance |
( |
double |
Rp | ) |
|
|
virtual |
Sets the nodes port resistance according to the port it is connected to.
- Parameters
-
Reimplemented from wdfRootNode.
§ Is
double wdfIdealCSource::Is |
§ numPorts
size_t wdfRootNode::numPorts |
|
protectedinherited |
The number of ports on a root node element.
§ Rp
The WDF port resistance in Ohm.
The documentation for this class was generated from the following files: