Class TimeParameters
A configuration for a ITimeSimulation with all the necessary parameters to do a transient analysis.
Inheritance
Inherited Members
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public abstract class TimeParameters : ParameterSet, IParameterSet, ICloneable<TimeParameters>
Constructors
TimeParameters()
Initializes a new instance of the TimeParameters class.
Declaration
protected TimeParameters()
TimeParameters(Dictionary<string, double>)
Initializes a new instance of the TimeParameters class.
Declaration
protected TimeParameters(Dictionary<string, double> ic)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, double> | ic | The initial conditions. |
Properties
InitialConditions
Gets the initial conditions.
Declaration
public Dictionary<string, double> InitialConditions { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, double> | The initial conditions. |
StartTime
Gets or sets the start time.
Declaration
[ParameterName("tstart")]
[ParameterName("t0")]
[ParameterInfo("The initial timepoint to start exporting data.")]
[GreaterThanOrEquals(0)]
public double StartTime { get; set; }
Property Value
Type | Description |
---|---|
double | The start time. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the timepoint is negative. |
StopTime
Gets or sets the stop time.
Declaration
[ParameterName("tstop")]
[ParameterInfo("The final timepoint.")]
[GreaterThanOrEquals(0)]
public double StopTime { get; set; }
Property Value
Type | Description |
---|---|
double | The stop time. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the timepoint is negative. |
TransientMaxIterations
Gets or sets the transient maximum iterations.
Declaration
[ParameterName("itl4")]
[ParameterInfo("The maximum number of transient timepoint iterations.")]
[GreaterThan(0)]
public int TransientMaxIterations { get; set; }
Property Value
Type | Description |
---|---|
int | The transient maximum iterations. |
UseIc
Gets or sets a value indicating whether initial conditions should be set by the entities.
Declaration
[ParameterName("uic")]
[ParameterInfo("A flag indicating that entities should set their own initial conditions.")]
public bool UseIc { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Validate
Gets or sets a value indicating whether the simulation should be validated.
Declaration
[ParameterName("time.validate")]
[ParameterInfo("Flag indicating whether the simulation should validate the circuit before executing")]
public bool Validate { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
Clone()
Clones the instance.
Declaration
public virtual TimeParameters Clone()
Returns
Type | Description |
---|---|
TimeParameters | The cloned instance. |
Create(IBiasingSimulationState)
Creates an instance of the integration method.
Declaration
public abstract IIntegrationMethod Create(IBiasingSimulationState state)
Parameters
Type | Name | Description |
---|---|---|
IBiasingSimulationState | state | The biasing simulation state that will be used as a base. |
Returns
Type | Description |
---|---|
IIntegrationMethod | The integration method. |