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

attenuator Class Reference

An ideal attenuator including Johnson noise. More...

#include <attenuator.h>

Inheritance diagram for attenuator::

nport device List of all members.

Public Methods

 attenuator (double a=3.0)
 Default constructor creates a 3 dB attenuator. More...

 attenuator (const abstract_real_parameter *a)
 Construct a shadowed parameter attenuator. More...

int size ()
 Attenuators are 2 port devices. More...

const nport::data_infoget_data_info ()
 Attenuators are "active" noise sources if not at device::T. More...


Public Attributes

parameter dB
 Attenuation in dB; impedance is given by device::Z0. More...

parameter Temp
 Temperature in standard units. More...


Private Methods

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

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


Detailed Description

An ideal attenuator including Johnson noise.

Definition at line 51 of file attenuator.h.


Constructor & Destructor Documentation

attenuator::attenuator ( double a = 3.0 )
 

Default constructor creates a 3 dB attenuator.

Definition at line 39 of file attenuator.cc.

attenuator::attenuator ( const abstract_real_parameter * a )
 

Construct a shadowed parameter attenuator.

Parameters:
a   attenuation in dBs

Definition at line 42 of file attenuator.cc.


Member Function Documentation

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

Attenuators are "active" noise sources if not at device::T.

Reimplemented from nport.

Definition at line 87 of file attenuator.h.

void attenuator::recalc ( ) [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 63 of file attenuator.cc.

void attenuator::recalc_S ( ) [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 46 of file attenuator.cc.

Referenced by recalc().

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

Attenuators are 2 port devices.

Returns:
the number of ports

Reimplemented from nport.

Definition at line 82 of file attenuator.h.


Member Data Documentation

parameter attenuator::Temp
 

Temperature in standard units.

Shadows global temperature T by default.

Definition at line 63 of file attenuator.h.

parameter attenuator::dB
 

Attenuation in dB; impedance is given by device::Z0.

Definition at line 57 of file attenuator.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