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

Public Methods | |
| current_sink () | |
| Constructor. More... | |
| int | size () |
| Generators are 1-port devices. More... | |
| const nport::data_info& | get_data_info () |
| 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... | |
Public Attributes | |
| parameter | Y |
| Admittance in standard units (1/Ohm). 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 | sink_current |
| Sink current in standard units. More... | |
| parameter | sink_phase |
| Source phase in standard units (Radians). More... | |
Note that unlike generator, this device is a SINK of current; for a SOURCE, the phase must be adjusted by 180 Degrees.
For this device, the sink current is specified in sink_current and sink_phase.
The default is to create an ideal current sink, with Y = 0. Only a real admittance Y can be specified for this device; if a complex admittance is required, use an ideal sink and couple it to the circuit through a 2-port with the desired parallel admittance.
The source frequency is held in source_f, and the frequency width of the source is held in source_width.
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 224 of file sources.h.
|
|
Constructor.
Definition at line 136 of file sources.cc. |
|
|
Reimplemented from nport. Definition at line 146 of file sources.cc. |
|
|
The function for calculating sdata. recalc() should do the following:
Reimplemented from nport. Definition at line 171 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 153 of file sources.cc. Referenced by recalc().
|
|
|
Generators are 1-port devices.
Reimplemented from nport. |
|
|
Temperature in standard units. Shadows global temperature T by default. |
|
|
Admittance in standard units (1/Ohm). Default is 0. |
|
|
Sink current in standard units. Default is 0. |
|
|
Source phase in standard units (Radians). Default is 0. |
|
|
Source frequency 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