Show / Hide Table of Contents

Class IndependentSourceParameters

Parameters that are common to an independent source.

Inheritance
object
ParameterSet
ParameterSet<IndependentSourceParameters>
IndependentSourceParameters
Parameters
Implements
ICloneable<IndependentSourceParameters>
IImportParameterSet<IWaveformDescription>
IExportPropertySet<IWaveformDescription>
IImportParameterSet<double[]>
IImportParameterSet<double>
IExportPropertySet<double>
IImportParameterSet<GivenParameter<double>>
IExportPropertySet<GivenParameter<double>>
IParameterSet
Inherited Members
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ParameterSet<IndependentSourceParameters>.Clone()

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 ac does not have 0-2 arguments.

UpdatePhasor()

Updates the phasor.

Declaration
public void UpdatePhasor()

Implements

ICloneable<T>
IImportParameterSet<P>
IExportPropertySet<P>
IImportParameterSet<P>
IImportParameterSet<P>
IExportPropertySet<P>
IImportParameterSet<P>
IExportPropertySet<P>
IParameterSet

Extension Methods

Utility.ThrowIfNull<T>(T, string)
Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)

See Also

ParameterSet
In this article
Back to top Generated by DocFX