Class PowerComponent
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
A component that can be attached to the power system and is able to have a created power model.
public class PowerComponent : PhysicalComponent, IPowerAttachment
- Inheritance
-
PowerComponent
- Implements
- Derived
- Inherited Members
Constructors
PowerComponent()
Default constructor
public PowerComponent()
Properties
Current
[A] The Input Current of the node
[EditableVariable("A", 0, false, "", "")]
public double Current { get; set; }
Property Value
Out_PowerNodeMsg
The power node message that contains the information about the power node
public PowerNodeMessage? Out_PowerNodeMsg { get; }
Property Value
Power
[W] The Power consumed by this power node
[EditableVariable("W", true, "", "")]
public double Power { get; }
Property Value
PowerModel
The power model of this component that is created by this component on begin.
protected PowerNodeModel PowerModel { get; set; }
Property Value
Resistance
[Ohm] The Resistance of the node
[EditableVariable("Ohm", 0, false, "", "")]
public double Resistance { get; set; }
Property Value
Voltage
[V] The Input Voltage of the node
[EditableVariable("V", 0, false, "", "")]
public double Voltage { get; set; }
Property Value
Methods
CreatePowerModel()
Creates the power model to ensure that it exists
protected void CreatePowerModel()
OnBegin(double)
Called when the 'Component' is beginning
protected override void OnBegin(double time)
Parameters
time
doublecurrent time (seconds)