ICcEnergySource¶
Package: inet.power.contract
module interface ICcEnergySource
This interface extends the corresponding energy model interface. It requires implementations to describe energy consumption and energy generation with current [A], and storage capacity with charge [C] and output voltage [V]. The Cc is an abbreviation that is used for charge and current-based interfaces.
See also: ICcEnergyConsumer, ICcEnergyGenerator, ICcEnergySink, ICcEnergyStorage, ICcEnergyManagement
Inheritance diagram¶
Implemented by¶
Name |
Type |
Description |
|---|---|---|
simple module |
This is an abstract base module for current-based energy source models. It defines shared signals and statistics. |
|
simple module |
This is an abstract base module for current-based energy storage models. It defines shared signals and statistics. |
|
simple module |
Models a battery pack consisting of multiple identical cells arranged in series or parallel. Calculates the overall capacity, voltage, and internal resistance based on the cell properties and their arrangement. In a serial arrangement, voltages and internal resistances add up. In a parallel arrangement, capacities add up and internal resistance decreases. |
|
simple module |
This battery model maintains a residual charge capacity by integrating the difference between the total consumed current and the total generated current over time. This model uses a charge-independent ideal voltage source and a charge-independent internal resistance. It initiates node crash when the residual charge capacity reaches zero. See the base module for signals and statistics. |
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
module interface |
This interface extends the corresponding energy model interface. It requires implementations to describe energy consumption and energy generation with current [A], and storage capacity with charge [C] and output voltage [V]. The Cc is an abbreviation that is used for charge and current based interfaces. |
Extends¶
Name |
Type |
Description |
|---|---|---|
module interface |
The energy source models provide energy for multiple energy consumers. |
Properties¶
Name |
Value |
Description |
|---|---|---|
display |
i=block/plug |
Signals¶
Name |
Type |
Unit |
Description |
|---|---|---|---|
currentConsumptionChanged |
double |
Source code¶
//
// This interface extends the corresponding energy model interface. It requires
// implementations to describe energy consumption and energy generation with
// current [A], and storage capacity with charge [C] and output voltage [V].
// The Cc is an abbreviation that is used for charge and current-based interfaces.
//
// @see ~ICcEnergyConsumer, ~ICcEnergyGenerator, ~ICcEnergySink, ~ICcEnergyStorage, ~ICcEnergyManagement
//
moduleinterface ICcEnergySource extends IEnergySource
{
parameters:
@display("i=block/plug");
@signal[currentConsumptionChanged](type=double);
}