#include <sources.h>
Inheritance diagram for generator::

Public Methods | |
| generator () | |
| Constructor. More... | |
| int | size () |
| Generators are 1-port devices. More... | |
| const nport::data_info& | get_data_info () |
Public Attributes | |
| parameter | R |
| Resistance in standard units. More... | |
| parameter | Temp |
| Temperature in standard units. More... | |
| parameter | source_f |
| Source frequency in standard units. More... | |
| parameter | source_width |
| Source frequency width in standard units. More... | |
| parameter | source_power |
| Source power in standard units. More... | |
| parameter | source_phase |
| Source phase in standard units (Radians). 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... | |
The source frequency is held in source_f, source power in source_power, and the frequency width of the source is held in source_width. The power in source_power represents the power that would be delivered to a matched load resistance R at frequency source_f.
The default is to create an ideal power source, with perfect normalized impedance match R = Z0. Only a real resistance R can be specified for this device; if a complex impedance is required, use an ideal source and couple it to the circuit through a 2-port transformer with the desired matching impedance.
If the global frequency differs from source_f by more than source_width/2, then the source vector sdata::B will be set to 0.
Definition at line 82 of file sources.h.
|
|
Constructor.
Definition at line 49 of file sources.cc. |
|
|
Reimplemented from nport. Definition at line 60 of file sources.cc. |
|
|
The function for calculating sdata. recalc() should do the following:
Reimplemented from nport. Definition at line 82 of file sources.cc. |
|
|
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 67 of file sources.cc. Referenced by recalc().
|
|
|
Generators are 1-port devices.
Reimplemented from nport. |
|
|
Resistance in standard units. Shadows device::Z0 by default. |
|
|
Temperature in standard units. Shadows global temperature T by default. |
|
|
Source frequency in standard units. Default is 0. |
|
|
Source phase in standard units (Radians). Default is 0. |
|
|
Source power in standard units. Default is 0. |
|
|
Source frequency width in standard units. Default is 0. |
Please direct comments and corrections to
supermix@submm.caltech.edu
Go to the supermix home page
Generated by
1.2.7