Class PowerCurrentLimiter
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] A current limiter is able to disable a part of the circuit when the current exceeds a threshold.
public class PowerCurrentLimiter : PowerComponent, IPowerInterface
- Inheritance
-
PowerCurrentLimiter
- Implements
Constructors
PowerCurrentLimiter()
Default constructor
protected PowerCurrentLimiter()
Fields
CurrentLimit
The max current limit
[Unit(UnitType.AMPERE)]
[Range(0, 1.7976931348623157E+308)]
public double CurrentLimit
Field Value
IsLimited
A flag for if the current is being limited by the current limiter
public bool IsLimited
Field Value
PreviousCurrent
The previous current if the current was limited
[Unit(UnitType.AMPERE)]
[ReadOnly]
[Metadata(IsAdvanced = true)]
public double PreviousCurrent
Field Value
Methods
BuildPower(string, string)
Builds the power components based on the power bus reference. Here, the interfaced component will be able to assign its SPICE components to the power bus. This will return an array of IEntity objects that represent the SPICE components.
[Hidden]
public override IEntity[] BuildPower(string negative, string positive)
Parameters
Returns
- IEntity[]
ConfigurePower(double)
Configures the power interface to its default state, which will include updating the variables of any SPICE power components to the correct state.
public override bool ConfigurePower(double step)
Parameters
step
double[s] The step time for the circuit run
Returns
- bool
A success flag
ExportPower(OP)
Exports the power from the SPICE (OP) simulation to the power interface, updating any relevant data.
[Hidden]
public override void ExportPower(OP simulation)
Parameters
simulation
OPThe SPICE OP simulation
OnLoad(double)
Called after all of the data has been loaded from a save state on this object. This enables any post-load operations to be performed and extra data to be loaded from the metadata.
protected override void OnLoad(double time)
Parameters
time
double[s] The current clock time of the simulation
OnSave()
Called before the object is saved into the save state. This ensures that any additional metadata can be saved on the object before it is automatically serialized.
protected override void OnSave()
ResetPower()
Resets the power interface to its default state, which will include removing any SPICE power references associated to the current interface.
public override void ResetPower()