To get started using NanoHive-1, we'll simulate the following carbon nanotube.

The files for this simulation are in the examples/nanotube-5x5 directory:
NanoHive-1/examples/nanotube-5x5 cnt55-sim.xml <-- simulation specification file cnt55.nml <-- nanotube description file simflow.tcl <-- simulation workflow file
Windows users will find this directory where they installed NanoHive-1 (there's also a shortcut to it called "Examples Folder" in the NanoHive-1 program group.) Unix users installed this directory when they ran the install-examples script.
results.txt, a tab-separated data file.NanoHive (no hyphen) from the command line.NanoHive-1 (TM) Version 1.2.0 Copyright (C) 2004,2005 NanoHive-1, LLC NanoHive-1 comes with ABSOLUTELY NO WARRANTY; for details run 'NanoHive -l' This is free software, and you are welcome to redistribute it under certain conditions; run 'NanoHive -l' for details. Loading configuration file: C:\Program Files\NanoHive-1\conf\configs.txt Logging to C:\Program Files\NanoHive-1/log/NanoHive-1.log ConsoleCommand Version 1.2.0 started. (Press Enter to begin interactive mode.) SocketsControl Version 1.2.0 started.Run the simulation
-f option indicates the simulation specification file, and the -n option indicates a name for the simulation.
> load simulation -f "C:\Program Files\NanoHive-1\examples\nanotube-5x5\cnt55-sim.xml" -n cnt55
.xml file into the command window after typing the "load simulation -f " part and it will fill in the path and filename for you. A shortcut to the NanoHive-1\examples folder has been added to the NanoHive-1 program group for your convenience.install-examples script:
> load simulation -f NanoHive-1/examples/nanotube-5x5/cnt55-sim.xml -n cnt55
run cnt55
The command line will notify you when the simulation is done, or you can see the status of the simulation by entering: status cnt55
help to get a command summary.nanotube-5x5 directory: cnt55-out.nml is the nanoML description of the nanotube after simulation, and results.txt contains simulation measurements. Here is a sampling of those results:
Iteration Timestamp (s) Ideal Temperature (K) Total Energy (J) 0 5e-016 0 0 20 1.1e-014 328.05646239868577 -3.5509475437549161e-016 40 2.1e-014 302.22761057089201 -3.5547835267918064e-016 60 3.1e-014 326.58338061380152 -3.548842822784157e-016 80 4.1e-014 317.93140467153665 -3.5513028886709029e-016 100 5.1e-014 327.61161242370457 -3.540485866467119e-016 120 6.1e-014 335.63659585646531 -3.5387027654503099e-016 140 7.1e-014 327.79441462546794 -3.5319209001085585e-016 160 8.1e-014 326.42341023714528 -3.5396366087355515e-016 180 9.1e-014 321.66359530328941 -3.5426654655060054e-016 200 1e-013 316.84105488524222 -3.5497281413934345e-016We see the ideal temperature near 300 K (our thermometer setting), and the total energy of the system stays relatively the same as it should, with Conservation of Energy.
Even Quicker Start With HiveKeeper
If you chose to install the HiveKeeper application, follow these steps to perform the simulation.
HiveKeeper from the command-line.
NetCDF result files directory:
C:\Program Files\NanoHive-1\examples\nanotube-5x5\results
Simulation specification file:
C:\Program Files\NanoHive-1\examples\nanotube-5x5\cnt55-sim.xml or in Unix:
NetCDF result files directory:
~/NanoHive-1/examples/nanotube-5x5/results
Simulation specification file:
~/NanoHive-1/examples/nanotube-5x5/cnt55-sim.xml
This is a relatively tame simulation of an already stable molecule - for a more dynamic system, try the POVRayVideo plugin's Example Usage: Hydrogen Abstraction Video where you'll simulate hydrogen abstraction from a diamond seed, then create an MPEG video of the results.