Table of Contents

Class PowerSource

Namespace
NominalSystems.Classes
Assembly
NominalSystems.Classes.dll

A power source is a component that can be added to the power bus system and is able to provide power that can charge up a storage unit, such as a battery.

public class PowerSource : PhysicalComponent, IPowerAttachment
Inheritance
PowerSource
Implements
Derived
Inherited Members

Constructors

PowerSource()

Default constructor

public PowerSource()

Fields

Out_PowerSourceMsg

The power source message containing the current information of the storage unit

public PowerSourceMessage Out_PowerSourceMsg

Field Value

PowerSourceMessage

Properties

IsActive

[-] A flag for if the source is currently active

[EditableVariable("-", false, "", "")]
public bool IsActive { get; set; }

Property Value

bool

NominalVoltage

[V] The desired voltage that is produced from this source

[EditableVariable("V", 0, false, "", "")]
public double NominalVoltage { 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] Current power being produced in Watts

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

Property Value

double

Methods

OnBegin(double)

Called when the 'Component' is beginning

protected override void OnBegin(double time)

Parameters

time double

current time (seconds)

OnReset(double)

Called when the 'Component' is reset from a simulation

protected override void OnReset(double time)

Parameters

time double

reset time (seconds)