The code is availale here.
To use it:
Download and install the latest version of ns-3
hg clone http://code.nsnam.org/ns-3-devcd ns-3-dev
Copy and paste nanonetwork/ in ns-3-dev/src
cp /where-is-nanonetwork/nanonetwork /where-is-ns3-dev/src/
Build again ns-3
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.