Manual · VARxMD 3.0
Home/Manual/Chapter 1

Chapter 1 — Getting started

Updated for VARxMD 3.0 · Download as PDF

This chapter takes you from a fresh installation to a finished trajectory. It assumes a Linux or macOS shell; on Windows the same commands work inside WSL. Everything shown here is also available as a runnable tutorial in the documentation section.

Shortcut. If you only want to see the program run, use the structure builder to create a water box, then press “generate input”. The input file below is what you will get.

1.1 Installation

VARxMD ships as a single archive containing the binaries, the manual and the example inputs. Unpack it anywhere and add the bin directory to your path:

tar xzf varxmd-3.0-linux-x86_64.tar.gz
export PATH=$PWD/varxmd-3.0/bin:$PATH
vxmd --version   # VARxMD 3.0 (build 2026-09-14)

The archive is self-contained: no system libraries beyond a C++17 runtime and, optionally, the CUDA driver. Python bindings are installed separately with pip install varxmd.

1.2 Licence and environment

A licence key is required for production runs. Place it in ~/.varxmd/licence.key or point the environment variable VXMD_LICENCE at it. Concurrent jobs on one node share the key; multi-node jobs need one key per node or a floating licence server.

  • VXMD_LICENCE — path to the licence file
  • VXMD_SCRATCH — directory for trajectory and restart files
  • VXMD_THREADS — number of OpenMP threads (default: all cores)

1.3 Your first run

A complete input consists of a few blocks. The example below simulates 256 water molecules in the NVT ensemble at 300 K for 100 000 steps of 2 fs — 200 ps in total.

# water.nvt.inp
$system
  coords   water_box.xyz
  cell     24.6 24.6 24.6
  pbc      1 1 1
  forcefield amber/tip3p
$end
$md
  ensemble   nvt
  steps      100000
  dt         2.0 fs
  thermo     bussi 300
  constraints  h-bonds
  traj       every 100 steps
$end
$analysis
  rdf   O O  rmax 8.0
  msd   O    window 5 ps
$end

Run it with the core driver:

vxmd water.nvt.inp | tee water.log

The run writes water.trj (trajectory), water.ene (energies and temperature) and water.res (restart). Analysis output appears in water.rdf.dat and water.msd.dat as the run progresses — you do not need to wait for it to finish.

Watch the equilibration. Plot the second column of water.ene against step number. Temperature should reach 300 K within a few thousand steps and stay flat; if it drifts, the time step is too large or the structure was built badly.

Where to go next

Chapter 2 explains the input language in detail — how blocks are validated, which keywords have defaults, and how units are handled. If you already have a structure and only need to choose an ensemble, jump to Chapter 4.