| 36 | 
  | 
 * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).              | 
| 37 | 
  | 
 * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).           | 
| 38 | 
  | 
 * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).           | 
| 39 | 
< | 
 * [4]  Vardeman & Gezelter, in progress (2009).                         | 
| 39 | 
> | 
 * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010). | 
| 40 | 
> | 
 * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). | 
| 41 | 
  | 
 */ | 
| 42 | 
  | 
  | 
| 43 | 
  | 
#include <iostream> | 
| 44 | 
  | 
#include <fstream> | 
| 45 | 
  | 
#include <string> | 
| 46 | 
  | 
 | 
| 46 | 
– | 
#include "brains/Register.hpp" | 
| 47 | 
  | 
#include "brains/SimCreator.hpp" | 
| 48 | 
  | 
#include "brains/SimInfo.hpp" | 
| 49 | 
  | 
#include "io/DumpReader.hpp" | 
| 69 | 
  | 
#include "applications/staticProps/pAngle.hpp" | 
| 70 | 
  | 
#include "applications/staticProps/BondAngleDistribution.hpp" | 
| 71 | 
  | 
#include "applications/staticProps/NanoVolume.hpp" | 
| 72 | 
+ | 
#include "applications/staticProps/NanoLength.hpp" | 
| 73 | 
  | 
#if defined(HAVE_FFTW_H) || defined(HAVE_DFFTW_H) || defined(HAVE_FFTW3_H) | 
| 74 | 
  | 
#include "applications/staticProps/Hxy.hpp" | 
| 75 | 
  | 
#endif | 
| 76 | 
  | 
#include "applications/staticProps/RhoR.hpp" | 
| 77 | 
  | 
#include "applications/staticProps/AngleR.hpp" | 
| 77 | 
– | 
#include "applications/staticProps/RhoAngleR.hpp" | 
| 78 | 
  | 
#include "applications/staticProps/TetrahedralityParam.hpp" | 
| 79 | 
< | 
 | 
| 79 | 
> | 
#include "applications/staticProps/TetrahedralityParamZ.hpp" | 
| 80 | 
  | 
using namespace OpenMD; | 
| 81 | 
  | 
 | 
| 82 | 
  | 
int main(int argc, char* argv[]){ | 
| 83 | 
  | 
   | 
| 84 | 
– | 
  //register force fields | 
| 85 | 
– | 
  registerForceFields(); | 
| 84 | 
  | 
   | 
| 85 | 
  | 
  gengetopt_args_info args_info; | 
| 86 | 
  | 
   | 
| 93 | 
  | 
  std::string dumpFileName = args_info.input_arg; | 
| 94 | 
  | 
  std::string sele1; | 
| 95 | 
  | 
  std::string sele2; | 
| 98 | 
– | 
  bool userSpecifiedSelect1; | 
| 99 | 
– | 
  bool userSpecifiedSelect2; | 
| 96 | 
  | 
   | 
| 97 | 
  | 
  // check the first selection argument, or set it to the environment | 
| 98 | 
  | 
  // variable, or failing that, set it to "select all" | 
| 259 | 
  | 
  } else if (args_info.tet_param_given) { | 
| 260 | 
  | 
    if (args_info.rcut_given) {    | 
| 261 | 
  | 
      analyser = new TetrahedralityParam(info, dumpFileName, sele1,  | 
| 262 | 
+ | 
                                         args_info.rcut_arg,  | 
| 263 | 
+ | 
                                         args_info.nbins_arg); | 
| 264 | 
+ | 
    } else { | 
| 265 | 
+ | 
      sprintf( painCave.errMsg, | 
| 266 | 
+ | 
               "A cutoff radius (rcut) must be specified when calculating Tetrahedrality Parameters"); | 
| 267 | 
+ | 
      painCave.severity = OPENMD_ERROR; | 
| 268 | 
+ | 
      painCave.isFatal = 1; | 
| 269 | 
+ | 
      simError(); | 
| 270 | 
+ | 
    } | 
| 271 | 
+ | 
  } else if (args_info.tet_param_z_given) { | 
| 272 | 
+ | 
    if (args_info.rcut_given) {    | 
| 273 | 
+ | 
      analyser = new TetrahedralityParamZ(info, dumpFileName, sele1,  | 
| 274 | 
  | 
                                         args_info.rcut_arg,  | 
| 275 | 
  | 
                                         args_info.nbins_arg); | 
| 276 | 
  | 
    } else { | 
| 336 | 
  | 
    } | 
| 337 | 
  | 
  } else if (args_info.hullvol_given) { | 
| 338 | 
  | 
    analyser = new NanoVolume(info, dumpFileName, sele1); | 
| 339 | 
+ | 
  } else if (args_info.rodlength_given) { | 
| 340 | 
+ | 
    analyser = new NanoLength(info, dumpFileName, sele1); | 
| 341 | 
  | 
  } else if (args_info.angle_r_given) { | 
| 342 | 
  | 
    analyser = new AngleR(info, dumpFileName, sele1, maxLen,args_info.nbins_arg); | 
| 343 | 
  | 
  } | 
| 348 | 
  | 
  if (args_info.step_given) { | 
| 349 | 
  | 
    analyser->setStep(args_info.step_arg); | 
| 350 | 
  | 
  } | 
| 351 | 
< | 
   | 
| 351 | 
> | 
  | 
| 352 | 
  | 
  analyser->process(); | 
| 353 | 
  | 
   | 
| 354 | 
  | 
  delete analyser;     |