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

Public Methods | |
| voltage_source () | |
| Constructor. More... | |
| int | size () |
| Voltage sources 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_voltage |
| Source voltage 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... | |
For this device, a source voltage is specified in source_voltage and source_phase.
The default is to create an ideal voltage source, with R = 0. 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 with the desired series impedance.
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 151 of file sources.h.
|
|
Constructor.
Definition at line 93 of file sources.cc. |
|
|
Reimplemented from nport. Definition at line 103 of file sources.cc. |
|
|
The function for calculating sdata. recalc() should do the following:
Reimplemented from nport. Definition at line 125 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 110 of file sources.cc. Referenced by recalc().
|
|
|
Voltage sources 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 voltage 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