#include <elements.h>
Inheritance diagram for spimp::

Public Methods | |
| spimp () | |
| Default constructor creates sdata for 2 ports. More... | |
| virtual | ~spimp () |
| int | size () |
| All spimp devices have 2 ports. More... | |
| spimp& | series () |
| Call this to make device be a series impedance. More... | |
| spimp& | parallel () |
| Call this to make device be a parallel impedance. More... | |
Protected Methods | |
| void | calcZ (complex Z) |
| Calculate the S matrix if the impedance Z is known. More... | |
| void | calcY (complex Y) |
| Calculate the S matrix if the admittance Y is known. More... | |
Protected Attributes | |
| bool | is_series |
| Boolean value, device is series if true, parallel if false. More... | |
Elements derived from class spimp have the following characteristics:
series(); // Make the object a series impedance
parallel(); // Make the object a parallel impedance
At construction, the object is set to represent a series impedance.
Here is what is meant by series and parallel 2-ports:
series: parallel:
o--XXXX--o o----+----o
X
1 2 1 X 2
X
o--------o o----+----o
Class spimp is an abstract class. It will never be instantiated directly.
Definition at line 101 of file elements.h.
|
|
Default constructor creates sdata for 2 ports. Boolean is_series is set to true. No spimp devices have embedded sources. Definition at line 132 of file elements.h. |
|
|
Definition at line 135 of file elements.h. |
|
|
Calculate the S matrix if the admittance Y is known. Called by recalc() in subclasses of spimp.
Definition at line 80 of file elements.cc. Referenced by capacitor::recalc(), parallel_RLC::recalc_S(), and series_RLC::recalc_S().
|
|
|
Calculate the S matrix if the impedance Z is known. Called by recalc() in subclasses of spimp.
Definition at line 52 of file elements.cc. Referenced by inductor::recalc(), resistor::recalc(), parallel_RLC::recalc_S(), series_RLC::recalc_S(), and resistor::recalc_S().
|
|
|
Call this to make device be a parallel impedance.
Definition at line 153 of file elements.h. Referenced by fet::construct().
|
|
|
Call this to make device be a series impedance.
Definition at line 147 of file elements.h. Referenced by fet::construct().
|
|
|
All spimp devices have 2 ports.
Reimplemented from nport. Definition at line 142 of file elements.h. |
|
|
Boolean value, device is series if true, parallel if false. Default value is true. Definition at line 108 of file elements.h. |
Please direct comments and corrections to
supermix@submm.caltech.edu
Go to the supermix home page
Generated by
1.2.7