Class AC
Class that implements a frequency-domain analysis (AC analysis).
Inheritance
AC
Implements
Inherited Members
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public class AC : FrequencySimulation, IStateful<TemperatureSimulationState>, IStateful<IIterationSimulationState>, IBehavioral<IBiasingUpdateBehavior>, IParameterized<BiasingParameters>, IFrequencySimulation, IBiasingSimulation, ISimulation<IVariable<double>>, ITemperatureSimulation, IStateful<ITemperatureSimulationState>, IBehavioral<ITemperatureBehavior>, IBehavioral<IBiasingBehavior>, IBehavioral<IConvergenceBehavior>, IStateful<IBiasingSimulationState>, ISimulation<IVariable<Complex>>, ISimulation, IParameterSetCollection, IParameterSet, IBehavioral<IFrequencyBehavior>, IStateful<IComplexSimulationState>, IStateful, IBehavioral<IFrequencyUpdateBehavior>, IBehavioral, IParameterized<FrequencyParameters>
Constructors
AC(string)
Initializes a new instance of the AC class.
Declaration
public AC(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the simulation. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
AC(string, IEnumerable<double>)
Initializes a new instance of the AC class.
Declaration
public AC(string name, IEnumerable<double> frequencySweep)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the simulation. |
IEnumerable<double> | frequencySweep | The frequency points. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Fields
ExportOperatingPoint
The constant returned when exporting the operating point.
Declaration
public const int ExportOperatingPoint = 1
Field Value
Type | Description |
---|---|
int |
ExportSmallSignal
The constant returned when exporting the small signal point.
Declaration
public const int ExportSmallSignal = 2
Field Value
Type | Description |
---|---|
int |
Properties
Frequency
Gets the current frequency point.
Declaration
public double Frequency { get; }
Property Value
Type | Description |
---|---|
double |
Methods
Execute(int)
Executes the simulation.
Declaration
protected override IEnumerable<int> Execute(int mask = 65535)
Parameters
Type | Name | Description |
---|---|---|
int | mask | A bit mask for simulation export identifiers. |
Returns
Type | Description |
---|---|
IEnumerable<int> |
Overrides
Exceptions
Type | Condition |
---|---|
SpiceSharpException | Thrown if the simulation can't continue. |