Table of Contents

Class PowerComponent

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

[Nominal] A component that can be attached to the power system and is able to have a created power model.


public class PowerComponent : PhysicalObject
Inheritance
PowerComponent
Derived

Constructors

PowerComponent()

Default constructor

protected PowerComponent()

Properties

Current

The Input Current of the node.

[Unit(UnitType.AMPERE)]
[Range(0, 1.7976931348623157E+308)]
[Metadata(ContainedIn = "PowerModel")]
public double Current { get; set; }

Property Value

double

Power

The Power consumed by this component

[Unit(UnitType.WATT)]
[ReadOnly]
public double Power { get; }

Property Value

double

PowerModel

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

public PowerNodeModel? PowerModel { get; }

Property Value

PowerNodeModel

Resistance

The Resistance of the node.

[Unit(UnitType.OHM)]
[Range(0, 1.7976931348623157E+308)]
[Metadata(ContainedIn = "PowerModel")]
public double Resistance { get; set; }

Property Value

double

Voltage

The Input Voltage of the node.

[Unit(UnitType.VOLT)]
[Range(0, 1.7976931348623157E+308)]
[Metadata(ContainedIn = "PowerModel")]
public double Voltage { get; set; }

Property Value

double

Methods

OnCreate()

Called when the 'Component' is created from the controller.

protected override void OnCreate()

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