Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

spimp Class Reference

A superclass for 2-port simple primitive elements consisting of a Series or Parallel IMPedance. More...

#include <elements.h>

Inheritance diagram for spimp::

nport device capacitor inductor parallel_RLC resistor series_RLC List of all members.

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...


Detailed Description

A superclass for 2-port simple primitive elements consisting of a Series or Parallel IMPedance.

Elements derived from class spimp have the following characteristics:

In addition to the member functions common to all nports, elements derived from spimp have the following additional public member functions:
    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.


Constructor & Destructor Documentation

spimp::spimp ( ) [inline]
 

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.

spimp::~spimp ( ) [inline, virtual]
 

Definition at line 135 of file elements.h.


Member Function Documentation

void spimp::calcY ( complex Y ) [protected]
 

Calculate the S matrix if the admittance Y is known.

Called by recalc() in subclasses of spimp.

Parameters:
Y   the admittance at the current frequency

Definition at line 80 of file elements.cc.

Referenced by capacitor::recalc(), parallel_RLC::recalc_S(), and series_RLC::recalc_S().

void spimp::calcZ ( complex Z ) [protected]
 

Calculate the S matrix if the impedance Z is known.

Called by recalc() in subclasses of spimp.

Parameters:
Z   the impedance at the current frequency

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().

spimp & spimp::parallel ( ) [inline]
 

Call this to make device be a parallel impedance.

Definition at line 153 of file elements.h.

Referenced by fet::construct().

spimp & spimp::series ( ) [inline]
 

Call this to make device be a series impedance.

Definition at line 147 of file elements.h.

Referenced by fet::construct().

int spimp::size ( ) [inline, virtual]
 

All spimp devices have 2 ports.

Returns:
the number of ports

Reimplemented from nport.

Definition at line 142 of file elements.h.


Member Data Documentation

bool spimp::is_series [protected]
 

Boolean value, device is series if true, parallel if false.

Default value is true.

Definition at line 108 of file elements.h.


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

Please direct comments and corrections to supermix@submm.caltech.edu
Go to the supermix home page
Generated by doxygen1.2.7