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

parallel_RLC Class Reference

A two port parallel RLC device, derived from class spimp. More...

#include <elements.h>

Inheritance diagram for parallel_RLC::

spimp nport device List of all members.

Public Methods

 parallel_RLC (double r=0.0, double l=0.0, double c=0.0)
 Default constructor sets temperature to shadow device::T. More...

parallel_RLC& set_R (double r)
 Set the resistance. More...

parallel_RLC& set_R (abstract_real_parameter *r)
 Set the resistance to shadow a parameter. More...

parallel_RLC& set_L (double l)
 Set the inductance. More...

parallel_RLC& set_L (abstract_real_parameter *l)
 Set the inductance to shadow a parameter. More...

parallel_RLC& set_C (double c)
 Set the capacitance. More...

parallel_RLC& set_C (abstract_real_parameter *c)
 Set the capacitance to shadow a parameter. More...

parallel_RLC& set_T (double t)
 Set the temperature. More...

parallel_RLC& set_T (abstract_real_parameter *t)
 Set the temperature to shadow a parameter. More...

const nport::data_infoget_data_info ()
 Is an "active" noise source if its temperature is not the global T. More...


Public Attributes

parameter R
 Resistance in standard units. More...

parameter L
 Inductance in standard units. More...

parameter C
 Capacitance in standard units. More...

parameter Temp
 Temperature in standard units. More...


Private Methods

void recalc_S ()
 If the following function is implemented, it should only calculate the S matrix and B vector parts of data, leaving the C matrix part stale. More...

void recalc ()
 The function for calculating sdata. More...


Detailed Description

A two port parallel RLC device, derived from class spimp.

The impedance of a parallel_RLC is that of a parallel resistor, capacitor, and inductor. The order of the components is mathematically irrelevant, since the admittance is the sum of the individual admittances, and the scattering and noise correlation matrices are functions only of the admittance.

The resulting admittance of the parallel RLC combination is connected either in series with or in parallel with the two ports, as described for class spimp.

parallel_RLC has four real member parameters:

The RLC values may be set during construction as well. Example:
    parallel_RLC a(.01*Ohm, .2*Nano*Henry, 1*Pico*Farad);
 

This device may be useful if you need a simple but more accurate model of some real lumped circuit element.

Definition at line 540 of file elements.h.


Constructor & Destructor Documentation

parallel_RLC::parallel_RLC ( double r = 0.0,
double l = 0.0,
double c = 0.0 ) [inline, explicit]
 

Default constructor sets temperature to shadow device::T.

Parameters:
r   the resistance in standard units. Defaults to 0.
l   the inductance in standard units. Defaults to 0.
c   the capacitance in standard units. Defaults to 0.

Definition at line 565 of file elements.h.


Member Function Documentation

const nport::data_info & parallel_RLC::get_data_info ( ) [inline, virtual]
 

Is an "active" noise source if its temperature is not the global T.

Reimplemented from nport.

Definition at line 637 of file elements.h.

void parallel_RLC::recalc ( ) [inline, private, virtual]
 

The function for calculating sdata.

recalc() should do the following:

  • (1) Read device::f, device::Z0, and, by default, device::T to get the operating conditions for the response calculation.
  • (2) Calculate the S, C, and B matrix values and store them to nport::data, with all values normalized using device::Z0.
  • (3) Store the normalizing impedance to nport::data by calling data.set_znorm().

Reimplemented from nport.

Definition at line 654 of file elements.h.

void parallel_RLC::recalc_S ( ) [inline, private, virtual]
 

If the following function is implemented, it should only calculate the S matrix and B vector parts of data, leaving the C matrix part stale.

Reimplemented from nport.

Definition at line 642 of file elements.h.

parallel_RLC & parallel_RLC::set_C ( abstract_real_parameter * c ) [inline]
 

Set the capacitance to shadow a parameter.

Parameters:
c   parameter of capacitance in standard units.

Definition at line 615 of file elements.h.

parallel_RLC & parallel_RLC::set_C ( double c ) [inline]
 

Set the capacitance.

Parameters:
c   the capacitance in standard units.

Definition at line 607 of file elements.h.

parallel_RLC & parallel_RLC::set_L ( abstract_real_parameter * l ) [inline]
 

Set the inductance to shadow a parameter.

Parameters:
l   parameter of inductance in standard units.

Definition at line 599 of file elements.h.

parallel_RLC & parallel_RLC::set_L ( double l ) [inline]
 

Set the inductance.

Parameters:
l   the inductance in standard units.

Definition at line 591 of file elements.h.

parallel_RLC & parallel_RLC::set_R ( abstract_real_parameter * r ) [inline]
 

Set the resistance to shadow a parameter.

Parameters:
r   parameter of resistance in standard units.

Definition at line 583 of file elements.h.

parallel_RLC & parallel_RLC::set_R ( double r ) [inline]
 

Set the resistance.

Parameters:
r   the resistance in standard units.

Definition at line 575 of file elements.h.

parallel_RLC & parallel_RLC::set_T ( abstract_real_parameter * t ) [inline]
 

Set the temperature to shadow a parameter.

Parameters:
t   parameter of temperature in standard units.

Definition at line 631 of file elements.h.

parallel_RLC & parallel_RLC::set_T ( double t ) [inline]
 

Set the temperature.

Parameters:
t   temperature in standard units.

Definition at line 623 of file elements.h.


Member Data Documentation

parameter parallel_RLC::C
 

Capacitance in standard units.

Definition at line 550 of file elements.h.

parameter parallel_RLC::L
 

Inductance in standard units.

Definition at line 547 of file elements.h.

parameter parallel_RLC::R
 

Resistance in standard units.

Definition at line 544 of file elements.h.

parameter parallel_RLC::Temp
 

Temperature in standard units.

Shadows global temperature T by default.

Definition at line 556 of file elements.h.


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

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