Package: inet.power.storage
SimpleCcBattery
simple moduleThis 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 an charge independent internal resistance. It initiates node crash when the residual charge capacity reaches zero. See the base module for signals and statistics.
Author: Levente Meszaros
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name  Type  Description 

CcEnergyStorageBase  simple module 
This is an abstract base module for current based energy storage models. It defines shared signals and statistics. 
Parameters
Name  Type  Default value  Description 

nominalCapacity  double 
maximum amount of charge stored 

initialCapacity  double 
the initially stored amount of charge 

nominalVoltage  double 
open circuit voltage at maximum charge 

internalResistance  double 
internal resistance 

displayStringTextFormat  string  "%c (%p)" 
Properties
Name  Value  Description 

display  i=block/plug  
class  SimpleCcBattery 
Signals
Name  Type  Unit 

currentConsumptionChanged  
residualChargeCapacityChanged  
currentGenerationChanged 
Statistics
Name  Title  Source  Record  Unit  Interpolation Mode 

currentGeneration  Current generation  currentGenerationChanged  vector  samplehold  
residualChargeCapacity  Residual charge capacity  residualChargeCapacityChanged  vector  linear  
currentConsumption  Current consumption  currentConsumptionChanged  vector  samplehold 
Source code
// // 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 an // charge independent internal resistance. It initiates node crash when the // residual charge capacity reaches zero. See the base module for signals and // statistics. // // @author Levente Meszaros // simple SimpleCcBattery extends CcEnergyStorageBase { parameters: double nominalCapacity @unit(C); // maximum amount of charge stored double initialCapacity @unit(C); // the initially stored amount of charge double nominalVoltage @unit(V); // open circuit voltage at maximum charge double internalResistance @unit(Ohm); // internal resistance string displayStringTextFormat = default("%c (%p)"); @class(SimpleCcBattery); }File: src/inet/power/storage/SimpleCcBattery.ned