Class PowerFuse
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] A power fuse is able to flick a switch, disabling a circuit when a current exceeds a threshold.
public class PowerFuse : PowerComponent, IPowerInterface
- Inheritance
-
PowerFuse
- Implements
Constructors
PowerFuse()
Default constructor
protected PowerFuse()
Fields
CurrentThreshold
The threshold of the fuse
[Unit(UnitType.AMPERE)]
[Range(0, 1.7976931348623157E+308)]
public double CurrentThreshold
Field Value
FuseBlowTime
The time that the threshold was blown
[Unit(UnitType.SECOND)]
[ReadOnly]
[Metadata(IsAdvanced = true)]
public double FuseBlowTime
Field Value
ResetDuration
The time taken to reset the fuse after it is blown. If 0.0 then the fuse cannot be reset.
[Unit(UnitType.SECOND)]
[Range(0, 1.7976931348623157E+308)]
public double ResetDuration
Field Value
ThresholdDuration
The time required for the current to exceed the threshold to blow the fuse.
[Unit(UnitType.SECOND)]
[Range(0, 1.7976931348623157E+308)]
public double ThresholdDuration
Field Value
ThresholdMetTime
The time the threshold was first met
[Unit(UnitType.SECOND)]
[ReadOnly]
[Metadata(IsAdvanced = true)]
public double ThresholdMetTime
Field Value
Properties
IsFuseBlown
A flag if the fuse was blown
[ReadOnly]
[Metadata(ContainedIn = "PowerModel", ContainedName = "IsOpenCircuit")]
public bool IsFuseBlown { get; }
Property 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
OnUpdate(double, double)
Called when the object should update from the simulation tick. This will take in a time and a step, where the time is the time of the clock before updating the object.
protected override void OnUpdate(double time, double step)
Parameters
time
double[s] Current time of the simulation before the update
step
double[s] The time-step to update during this tick
Reset()
Resets the blown fuse back to its original state, closing off the circuit.
public void Reset()