#include <nport.h>
Inheritance diagram for nport::

Public Methods | |
| nport (int n=0) | |
| The default constructor. More... | |
| virtual | ~nport () |
| virtual const sdata& | get_data () |
| virtual const sdata& | get_data (state_tag calc_id) |
| Return the nport data, recalculating only if calc_id is different from when we last recalculated. More... | |
| virtual const sdata& | get_last_data () const |
| Return the nport data. More... | |
| virtual const sdata& | get_data_S () |
| Special function to save time in circuits: calculate only the S matrix and B vector parts of the sdata. More... | |
| virtual const sdata& | get_data_S (state_tag calc_id) |
| Special function to save time in circuits: calculate only the S matrix and B vector parts of the sdata only if calc_id is different from when we last recalculated. More... | |
| virtual int | size () |
| The number of ports this device has. More... | |
| virtual const data_info& | get_data_info () |
| virtual bool | has_noise () |
| virtual bool | is_active () |
| virtual bool | is_source () |
| virtual complex | S (int p1, int p2) |
| Recalculate the nport and return a single scattering parameter. More... | |
| virtual complex | C (int p1, int p2) |
| Recalculate the nport and return a single element of the noise correlation matrix. More... | |
| virtual complex | B (int p) |
| Recalculate the nport and return a single element of the source vector. More... | |
| virtual port | get_port (int index) |
| This is a trivial function that returns a port's port id. More... | |
| virtual int | get_port (port p) |
| This is a trivial function that returns a port's index. More... | |
| virtual v_index_mode | mode () |
| A function for those rare cases when an nport may not use Index_1 indexing. More... | |
Protected Methods | |
| virtual void | recalc ()=0 |
| The function for calculating sdata. More... | |
| virtual 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... | |
Protected Attributes | |
| sdata | data |
| data includes the scattering matrix, noise matrix, size, etc. More... | |
| data_info | info |
| holds the flags returned by get_data_info(). More... | |
All circuits and primitive elements are subclasses of class nport.
Class nport is an abstract class. It will never be instantiated directly.
Definition at line 98 of file nport.h.
|
|
The default constructor.
|
|
|
|
|
|
Recalculate the nport and return a single element of the source vector.
|
|
|
Recalculate the nport and return a single element of the noise correlation matrix.
|
|
|
Recalculate the nport and return a single scattering parameter.
|
|
|
Return the nport data, recalculating only if calc_id is different from when we last recalculated.
Reimplemented in data_ptr_nport. |
|
|
Reimplemented in data_ptr_nport. Definition at line 166 of file nport.h. Referenced by B(), C(), S(), circuit::calc(), connection::calc_block(), connection::calc_inter(), connection::calc_intra(), inst_circuit::currents(), two_match::get(), amp_mag_delta::get(), amp_k::get(), input_tn::get(), s_mag::get(), gain_dB::get(), radial_stub::recalc(), alias::recalc(), mixer_currents::recalc(), inst_circuit::recalc(), fet::recalc(), cascade::recalc(), deembed::recalc_S(), and inst_circuit::voltages().
|
|
|
Special function to save time in circuits: calculate only the S matrix and B vector parts of the sdata only if calc_id is different from when we last recalculated. The noise correlation matrix will contain stale values.
Reimplemented in data_ptr_nport. |
|
|
Special function to save time in circuits: calculate only the S matrix and B vector parts of the sdata. The noise correlation matrix will contain stale values.
Reimplemented in data_ptr_nport. Definition at line 197 of file nport.h. Referenced by circuit::calc(), connection::calc_block(), connection::calc_inter(), connection::calc_intra(), mixer::balancer::fill_data(), radial_stub::recalc(), reduced_nport::recalc_S(), alias::recalc_S(), fet::recalc_S(), cascade::recalc_S(), and twin_slot_antenna::recalc_S().
|
|
|
Reimplemented in twin_slot_antenna, power_divider, attenuator, circuit, cascade, connection, resistor, series_RLC, parallel_RLC, zterm, yterm, alias, sdata_interp, generator, voltage_source, current_sink, microstrip, cpw, r_waveguide, and trline. Definition at line 224 of file nport.h. Referenced by connection::calc_inter(), connection::calc_intra(), alias::get_data_info(), connection::get_data_info(), circuit::get_data_info(), has_noise(), is_active(), and is_source().
|
|
|
Return the nport data. Do not perform a calculation.
Reimplemented in data_ptr_nport. |
|
|
This is a trivial function that returns a port's index.
Reimplemented in connection. |
|
|
This is a trivial function that returns a port's port id.
Reimplemented in connection. Definition at line 60 of file nport.cc. Referenced by circuit::build_tree(), circuit::calc(), and connection::connection().
|
|
|
|
|
|
|
|
|
|
|
|
A function for those rare cases when an nport may not use Index_1 indexing.
Reimplemented in data_ptr_nport. Definition at line 288 of file nport.h. Referenced by circuit::add_port(), and circuit::connect().
|
|
|
The function for calculating sdata. recalc() should do the following:
Reimplemented in slot_antenna, twin_slot_antenna, power_divider, attenuator, circuit, cascade, circulator, connection, deembed, time_delay, resistor, capacitor, inductor, series_RLC, parallel_RLC, branch, series_tee, zterm, yterm, transconductance, fet, fhx13x, fhr02x, kukje, jpltrw160, jpltrw300, hybrid90, hybrid180, inst_circuit, mixer, mixer_currents, alias, simple_nport, radial_stub, reduced_nport, sdata_interp, generator, voltage_source, current_sink, transformer, microstrip, cpw, r_waveguide, and trline. Referenced by radial_stub::recalc(), and radial_stub::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.
Reimplemented in twin_slot_antenna, power_divider, attenuator, circuit, cascade, connection, deembed, resistor, series_RLC, parallel_RLC, zterm, yterm, fet, alias, simple_nport, radial_stub, reduced_nport, sdata_interp, generator, voltage_source, current_sink, microstrip, cpw, r_waveguide, and trline. Definition at line 151 of file nport.h. Referenced by data_ptr_nport::get_data_S(), get_data_S(), trline::recalc(), r_waveguide::recalc(), cpw::recalc(), microstrip::recalc(), reduced_nport::recalc(), parallel_RLC::recalc(), series_RLC::recalc(), and twin_slot_antenna::recalc().
|
|
|
The number of ports this device has.
Reimplemented in twin_slot_antenna, attenuator, circuit, cascade, circulator, connection, time_delay, spimp, branch, series_tee, transconductance, fet, hybrid90, hybrid180, mixer, mixer_currents, data_ptr_nport, alias, radial_stub, reduced_nport, generator, voltage_source, current_sink, transformer, and trl_base. Definition at line 221 of file nport.h. Referenced by B(), C(), S(), cascade::add(), circuit::add_port(), circuit::calc(), circuit::connect(), connection::connection(), sdata_interp::copy(), deembed::deembed(), mixer::flag_mixer_incomplete(), mixer::freq(), get_port(), mixer::port(), cascade::recalc(), cascade::recalc_S(), twin_slot_antenna::set(), mixer::set_balance_terminator(), mixer::set_rf(), alias::size(), mixer::size(), and cascade::size().
|
|
|
data includes the scattering matrix, noise matrix, size, etc.
|
|
|
holds the flags returned by get_data_info().
|
Please direct comments and corrections to
supermix@submm.caltech.edu
Go to the supermix home page
Generated by
1.2.7