Applicable Versions | NetSim Acad | NetSim Standard | NetSim Pro |

Applicable Releases | v11 | v12 | v13 |

The different currents available in the Sensor Battery model are (i) Transmit-Current (ii) Receive-Current (iii) IdleMode-Current, and (iv) SleepMode-Current

The energy consumed in each of these activities would is computed as:

- Transmit-Energy-Consumed = Transmit-Current * Voltage * Time-for-which-node-transmits-packets
- Receive-Energy-Consumed = Receive-Current * Voltage * Time -for-which-node-receives-packets
- IdleMode-Energy-Consumed = IdleMode-Current * Voltage * Time-in-Idle-Mode
- SleepMode-Energy-Consumed = SleepMode-Current * Voltage * Time-in-sleep-mode

Total-Energy-Consumed = Transmit-Energy-Consumed + Receiver-Energy-Consumed+IdleMode-Energy-Consumed + SleepMode-Energy-Consumed

**Energy harvesting**

NetSim also has an Energy-Harvesting Model and

Energy-Harvested = Recharging-Current * Voltage * Time

Hence,

Battery-Energy (at any time) = Initial-Energy - Total-Energy-Consumed + Energy-Harvested

The units in NetSim for current is mA, for Voltage is V and for Total-Energy-Consumed is mJ. The Unit for Initial-Energy is mAH and this is converted to mJ for calculations since the output metrics are in mJ. The Initial energy in mAH is converted to mJ using the formula:

Initial Energy (mJ)= Initial Energy (mAH) * Voltage (V) * 3600

For example, if we set Initial energy=0.5mAH, and if the voltage in 1V then Initial Energy (mJ) = 1800 (i.e. =0.5*3600)

The default settings in the energy model in NetSim IoT/ WSN library is based on Table 1 in the following paper:

Accurate Prediction of Power Consumption in Sensor Networks

**Related articles**__:__

where-is-energy-consumption-battery-model-in-netsim-wsn-iot-set-calculated-

how-to-get-energy-harvesting-metrics-in-the-results-window-

**Webpage**

NetSim IoT: https://tetcos.com/iot-wsn.html

NetSim Documentation: https://tetcos.com/netsim-documentation.html