Class IndependentSourceParameters
Parameters that are common to an independent source.
Inheritance
IndependentSourceParameters
Implements
Inherited Members
Namespace: SpiceSharp.Components.CommonBehaviors
Assembly: SpiceSharp.dll
Syntax
public class IndependentSourceParameters : ParameterSet<IndependentSourceParameters>, ICloneable<IndependentSourceParameters>, IImportParameterSet<IWaveformDescription>, IExportPropertySet<IWaveformDescription>, IImportParameterSet<double[]>, IImportParameterSet<double>, IExportPropertySet<double>, IImportParameterSet<GivenParameter<double>>, IExportPropertySet<GivenParameter<double>>, IParameterSet
Properties
AcMagnitude
Small-signal magnitude.
Declaration
[ParameterName("acmag")]
[ParameterInfo("AC magnitude value")]
[Finite]
public double AcMagnitude { get; set; }
Property Value
Type | Description |
---|---|
double | The small-signal magnitude. |
AcPhase
Small-signal phase.
Declaration
[ParameterName("acphase")]
[ParameterInfo("AC phase value")]
[Finite]
public double AcPhase { get; set; }
Property Value
Type | Description |
---|---|
double | The small-signal phase. |
DcValue
The DC value of the source.
Declaration
[ParameterName("dc")]
[ParameterInfo("D.C. source value")]
[Finite]
public GivenParameter<double> DcValue { get; set; }
Property Value
Type | Description |
---|---|
GivenParameter<double> | The DC value. |
Phasor
Gets the phasor represented by the amplitude and phase.
Declaration
public Complex Phasor { get; }
Property Value
Type | Description |
---|---|
Complex | The complex phasor. |
Waveform
Gets or sets the waveform description.
Declaration
[ParameterName("waveform")]
[ParameterInfo("The waveform")]
public IWaveformDescription Waveform { get; set; }
Property Value
Type | Description |
---|---|
IWaveformDescription | The waveform description. |
Methods
Clone()
Clones the instance.
Declaration
public override IndependentSourceParameters Clone()
Returns
Type | Description |
---|---|
IndependentSourceParameters | The cloned instance. |
Overrides
SetAc(double[])
Sets the small-signal parameters of the source.
Declaration
[ParameterName("ac")]
[ParameterInfo("A.C. magnitude, phase vector")]
public void SetAc(double[] ac)
Parameters
Type | Name | Description |
---|---|---|
double[] | ac | Parameters. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if |
UpdatePhasor()
Updates the phasor.
Declaration
public void UpdatePhasor()