Table of Contents

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

double

Out_PowerNodeMsg

The power node message that contains the information about the power node

public PowerNodeMessage? Out_PowerNodeMsg { get; }

Property Value

PowerNodeMessage

Power

[W] The Power consumed by this power node

[EditableVariable("W", true, "", "")]
public double Power { get; }

Property Value

double

PowerModel

The power model of this component that is created by this component on begin.

protected PowerNodeModel PowerModel { get; set; }

Property Value

PowerNodeModel

Resistance

[Ohm] The Resistance of the node

[EditableVariable("Ohm", 0, false, "", "")]
public double Resistance { get; set; }

Property Value

double

Voltage

[V] The Input Voltage of the node

[EditableVariable("V", 0, false, "", "")]
public double Voltage { get; set; }

Property Value

double

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 double

current time (seconds)