[ns] initialEnergy value
fhg07@c3sl.ufpr.br
fhg07 at c3sl.ufpr.br
Wed Feb 4 05:42:05 PST 2009
Well, I am running a simulation in which I wanted to obtain a real
environment, thus I tried to calculate how many joules I have in a
Duracell AA MN1500 battery. In the end I got 30779.754 (doubled the result
as I use two batteries). So:
40 $ns node-config \
41 -energyModel EnergyModel \
42 -initialEnergy 30779.754
Ok, but first of all: I ain't sure about the reliability of this result,
and second of all: After sending 2200 messages, each of them with a Pt_
that covers like 260m, my energy remaining is 30778.725489. After that I
still would be able to send more ~30778*2200 msgs, what seems incredibly
wrong.
(To be more precise, these are the values of Pt_ and Pt_consume_:
Pt_ = 3.16227e-3
Pt_consume_ = 76.2e-3)
That way, I do not know whether my initialEnergy has a too high value due
to incorrect math, or if there is something wrong with the energy
consumption.
Anyone know a reasonable value for initialEnergy, considering that I want
to simulate two AA alkaline batteries? Or if there could be anything wrong
in my energy consumption?
Thanks in advance,
--
Fernando Henrique Gielow - UFPR - NR2
Computer Science graduation student.
More information about the Ns-users
mailing list