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
- Inheritance
-
PowerFuse
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")]
public bool IsFuseBlown { get; }
Property Value
Methods
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()