The code is availale here.
Download and install the latest version of ns-3
hg clone http://code.nsnam.org/ns-3-dev cd ns-3-dev ./waf configure ./waf
Copy and paste nanonetwork/ in ns-3-dev/src
cp /where-is-nanonetwork/nanonetwork /where-is-ns3-dev/src/
Build again ns-3
./waf configure ./waf
Run a simple example:
cp src/nanonetworks/examples/* scratch ./waf --run scratch/health-care
In the example folder there are simple scripts that can be used to run simulations (_RUN_SIMULATION_.sh), elaborate output traces (_POST_SIM_.sh), and plot results (makegraphs.m). They would reproduce the work presented in our reference papers.
Please, cite them if you use the tool in your research.
Giuseppe Piro, Luigi Alredo Grieco, Gennaro Boggia, and Pietro Camarda," Nano-Sim: simulating electromagnetic-based nanonetworks in the Network Simulator 3", in Proc. of Workshop on NS- 3 (held in conjunction with SIMUTools 2013), Cannes, France, Mar., 2013 .
Giuseppe Piro, Luigi Alfredo Grieco, Gennaro Boggia, and Pietro Camarda," Simulating Wireless Nano Sensor Networks in the NS-3 platform", in Proc. of Workshop on Performance Analysis and Enhancement of Wireless Networks (PAEWN-2013), Barcelona, Spain, Mar., 2013 .
Enjoy the Nano-Sim !